05-08-2014 09:29 AM
can someone help me in understanding how to convert the .txt spreadsheet into double array. It looks like the function is only readin the first charater. The vi was working fine (XP LV2011 SP1) before I migrate to win7 (LV2011 SP1).
Solved! Go to Solution.
05-08-2014 09:31 AM
you are using "d" - this converts to intergers, use %3f for floating point numbers (or %3g %3e %3p etc - look ate the context help for string conversion formats)
05-08-2014 09:42 AM
correct.
I changed that to float %f, but still I only have first character of each string number... what can I do
05-08-2014 09:44 AM
have you tried:
%.3f
05-08-2014 09:49 AM
It's your decimal point being a comma, problem.
05-08-2014 09:51 AM
RavensFan wrote:
It's your decimal point being a comma, problem.
&$%$$ - I looked at that myself but didn't think it was a comma. Must get eyes checked soon!!
05-08-2014 10:20 AM
He needs to make his format string %.;%.3f The % {period} {semicolon} tells the format string to interpret that string properly with decimal points rather than using the system setting which happens to be a decimal comma since that is what the array is showing.
05-12-2014 03:26 AM
Great
%.;%.3f works perfectly. thanks guys