mirror of
https://github.com/appgurueu/modlib.git
synced 2024-09-12 00:06:49 +02:00
6 lines
146 B
Lua
6 lines
146 B
Lua
-- Number helpers
|
|
function round(number, steps) -- Rounds a number
|
|
steps = steps or 1
|
|
return math.floor(number * steps + 0.5) / steps
|
|
end
|