09-03-2014 11:01 PM
I'm using 'format into string' to convert floating point no. to string. Most of the the numbers have single digit decimal so i use "%^0.1f" in the format into string terminal. But for whole nos. like 150, it gets converted to 150.0. I want to avoid this, such that the string looks exactly like the no.. What should i change?
Solved! Go to Solution.
09-03-2014 11:09 PM - edited 09-03-2014 11:09 PM
09-03-2014 11:17 PM - edited 09-03-2014 11:18 PM
Use %#0.1f as your format string.
Read the help file on format codes. The # sign tells it to truncate trailing zeroes.
09-03-2014 11:41 PM
Thanks a lot. it works perfectly now 🙂