11-06-2009 04:27 AM
Hi,
I would like to convert string to float. I have an text file which contents string float number.
for example:
10.000 2. 0000 1.32323 these strings I would like to convert float or double number.
Please help!
Solved! Go to Solution.
11-06-2009 04:44 AM
11-06-2009 04:46 AM
Use "Fract/Exp String To Number" function from string palette. Or while reading from file use "Spreadsheet String To Array" with array type as DBL array.
-Kumar.B
11-06-2009 04:54 AM
11-17-2009 02:14 PM
11-18-2009 08:52 AM
I use the spreadsheet string to array vi and I have to set correct the format string.
%.; %f
Thanks everybody!
04-30-2013 10:36 AM
Hi guys,
Im trying to convert a string to float number too, but my string comes from a text file and has to be converted to float but i cant make it reconize the (.) divisor. I gonna send a pic of my code. any suggestions.
04-30-2013 10:49 AM - edited 04-30-2013 10:49 AM
You don't want Decimal String to Number (which will only give you an integer). You want Fract/Exp String to Number (which will give you a floating point number).
04-30-2013 10:59 AM
Yes lol i used it before but the wrong way.. now it works thx. and sory for dumb question... its to many hours around the program 😄
04-30-2013 11:09 AM - edited 04-30-2013 11:09 AM
asnaev wrote:Im trying to convert a string to float number too, but my string comes from a text file and has to be converted to float but i cant make it reconize the (.) divisor. I gonna send a pic of my code. any suggestions.
Looking at the picture, I think you have several more problems than just converting to floating point. I would be happy to look at your code and give some recommendations if you would attach the VI.