I want to do a calculation like this:
8 / 5 = 1.6
But I want the result to be 1, dropping everything after the decimal.
How can I do this?
or if you wanna parse :D proc/dec2dig() |
Kozuma3 wrote:
Rounding up? use round() BYOND's round() function automatically rounds down. It's a floor function. |
round(x, 1)round(x) should work, it's a floor function.