03-03-2017 04:33 PM
Hello,
Please, I am trying to control the number of digits using format function and Format Specifier.
I acquired data using data acquisition. I got a number such as 1654.1876872. I want to get only two digits after comma such as 1654.18
I attached sample of the Vi which I tried but it's not working correctly
Thanks
Solved! Go to Solution.
03-03-2017 05:14 PM
Try "%.02f" for the format string.
03-03-2017 05:53 PM
Hello,
Thank you for your reply. Please, I tried it but its still not working
I attached the Vi
Thanks
03-03-2017 07:20 PM - edited 03-03-2017 07:22 PM
Read the detailed help for that function. You have nothing wired into value. Your "value" is a string you wired into the prepend string input. If your "value" is a string, you need to convert it to a number and back to a string.
Format Into String is much more commonly used than Format into Value. For one, it lets you format multiple values into a single string if you need to.