mirror of
https://github.com/appgurueu/modlib.git
synced 2024-08-20 05:14:10 +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
|