We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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.
What are the exact conditions for the end result you want? Look at these references.
http://processing.org/reference/nf_.html http://processing.org/reference/nfc_.html http://processing.org/reference/nfp_.html http://processing.org/reference/nfs_.html
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.
Answers
What are the exact conditions for the end result you want? Look at these references.
http://processing.org/reference/nf_.html http://processing.org/reference/nfc_.html http://processing.org/reference/nfp_.html http://processing.org/reference/nfs_.html
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.