Omnilibrary


A collection of functions that omnimods are using.

Internal
16 hours ago
0.15 - 2.0
24.8K

g omni.lib.round_up = math.ceil

7 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?