ceil( num )
Returns the next highest integer (the "ceiling") of a number.
The number.

If the given number is a fractional value between integers, the next highest integer is returned.

If the given number is an integer already, it is returned as-is.

Examples Edit

print(ceil(5.9))   -- 6
print(ceil(-5.2))  -- -5
print(ceil(7))     -- 7
print(ceil(-7))    -- -7

See also Edit

Community content is available under CC-BY-SA unless otherwise noted.