Reduce a float size(String size)

edited February 2014 in How To...

It is possible to reduce a float example: 21.50000 to just 4 digits like 21.50 , without converting the float to a string then using the substring function.


  • edited February 2014

    I was after reducing a float such as 21.500000 to just 21.50

    I have got the result I wanted by using the nf() function, thanks.

Sign In or Register to comment.