LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

conversion table string to double

Solved!
Go to solution

Hi,

 

I try to convert the string from array to DBL but I can not find the function

Can someone help me. you find attached my program

thank's,

 

0 Kudos
Message 1 of 11
(5,517 Views)

Decimal string to number.

 

But, if those commas are actually separating the integers and decomals, you might have to change them to periods first (exercise left to the OP).

 

Cameron

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 2 of 11
(5,513 Views)
Solution
Accepted by topic author ema_1987
Message 3 of 11
(5,507 Views)

Whoops, you're right. I went through it quickly and didn't notice that Decimal string to number resulted in integers. My bad Smiley Embarassed .

 

Cameron

 

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 4 of 11
(5,501 Views)

@camerond wrote:

Whoops, you're right. I went through it quickly and didn't notice that Decimal string to number resulted in integers. My bad Smiley Embarassed .

 

Cameron

 


I'd have to include this in the top ten list of most common misunderstandings in LabVIEW.  Most people think of "decimal" as "a number with a decimal point," but LabVIEW (at least in this case) defines it as a "base 10 number."  You know what?  BOTH are correct.  Unfortunately, that leads to mass confusion, as most people expect this function to elicit a number with a decimal point if needed.

 

So don't feel bad.  😉

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 5 of 11
(5,489 Views)

Thank's you save my lifeSmiley Wink

 

0 Kudos
Message 6 of 11
(5,456 Views)
 

I'd have to include this in the top ten list of most common misunderstandings in LabVIEW.  Most people think of "decimal" as "a number with a decimal point," but LabVIEW (at least in this case) defines it as a "base 10 number."  You know what?  BOTH are correct.  Unfortunately, that leads to mass confusion, as most people expect this function to elicit a number with a decimal point if needed.

 

So don't feel bad.  😉


It should really be called "String to Integer", as it's not a base 10 number, but a base 2 number, if you want to get technical. 🙂

I guess it's to cater to the "non programmers" by calling it "to decimal". Integer is however a basic part of math (http://en.wikipedia.org/wiki/Number#Integers) and i assume all who use LV has a basic knowledge of that. 🙂

By the same logic "String to fract/exp" should be renamed "String to real".

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 7 of 11
(5,445 Views)

"String to Float" would be my attempt at renaming that function YSmiley Wink  But older versions of LabVIEW were not 100% IEEE 754 compliant.   I will not speculate on future versions although, changing a core data type would be unusual.  So, I assume the primitive was named "String to fract/exp" to avoid confusion. (That didn't work perfectly, did itSmiley Surprised)


"Should be" isn't "Is" -Jay
Message 8 of 11
(5,420 Views)

@JÞB wrote:

"String to Float" would be my attempt at renaming that function Y


I was about to suggest that also, but noticed that they used the terms Integer and Real on the wiki link. Personally i prefer float. 🙂

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 9 of 11
(5,415 Views)

@Yamaeda wrote:

@JÞB wrote:

"String to Float" would be my attempt at renaming that function Y


I was about to suggest that also, but noticed that they used the terms Integer and Real on the wiki link. Personally i prefer float. 🙂

/Y


"Real numbers" is a mathematical concept.  Floating point representation is a computational standard.  A huge difference! computers don't work with Real numbers.  (Well not this one-  there are analog computors but they don't work with any OS LabVIEW supports)


"Should be" isn't "Is" -Jay
0 Kudos
Message 10 of 11
(5,406 Views)