Omnilibrary


A collection of functions that omnimods are using.

Internal
4 months ago
0.15 - 1.1
22.8K

g omni.lib.round_up = math.ceil

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