06-11-2013 06:01 AM
Hi,
I am new to LabVIEW and this is kind of a basic question.
I am trying to understand a code and I am supposed to modify it to suite our application. So here, I've got 'Scan from String' and to its 'Format String' terminal. 'A%f'
Now I know what %f is..but I don't understand what 'A' stands for.
Thanks in advance!
Solved! Go to Solution.
06-11-2013 06:08 AM
06-11-2013 06:23 AM
hi jcarmody,
Thank you for such a quick response!
So in order to get say 8 digits and 3 after the decimal point, I should write '%8.3f' right?
Thanks in advance!
06-11-2013 06:52 AM
@netra wrote:
hi @jcarmody,
Thank you for such a quick response!
So in order to get say 8 digits and 3 after the decimal point, I should write '%8.3f' right?
Thanks in advance!
You should probably use "%.3f". The width is very specific. So if you might not have exactly 8 characters in the number you will not get the right number. Be sure to look in the help for the Format Specifier Syntax article.