25.03.2010, 02:34
Lets say the actual float is: 46.230553
%.0f = 46
%.1f = 46.2
%.2f = 46.23
Should get the idea of how this works now :P
So basically this is used only to show the important numbers in the float...
Another example, instead of displaying 100.000000, Using %f.1 will only display 100.0
%.0f = 46
%.1f = 46.2
%.2f = 46.23
Should get the idea of how this works now :P
So basically this is used only to show the important numbers in the float...
Another example, instead of displaying 100.000000, Using %f.1 will only display 100.0