Omnilibrary


A collection of functions that omnimods are using.

Internal
10 days ago
0.15 - 2.1
33.0K

g omni.lib.round_up = math.ceil

9 years ago

You defined the function omni.lib.round_up as follows:
"
function omni.lib.round_up(number)
local decimal = number-math.floor(number)
if decimal > 0 then return math.floor(number)+1 else return math.floor(number) end
end
"
What is this different from the math.ceil built-in function in lua?