Originally Posted by Lane
What does %.0f mean in english?
|
%.0f means that it will format the number you're inputting to a float with 0 decimals. So if you hand it 24.1241 you'd get 24 out.
You can try it ingame with
Code:
/dump string.format("%.0f", 24.1241)
which would yield..
Code:
Dump: value=string.format("%.0f", 24.1241)
[1]=24
If you'd want one decimal, you would use 1 instead of 0.