gui/GuiManager/Misc/round.int
Ryan Ward 76fd457833 Updated to 9.0.0
Love2D 1.11 Support is here! :D
2018-06-09 14:54:54 -04:00

4 lines
104 B
Plaintext

function gui.round(num, idp)
local mult = 10^(idp or 0)
return math.floor(num * mult + 0.5) / mult
end