Type Function Library math.* Return value Number Revision 2017.3060 Keywords ceil, ceiling See also math.floor()
Returns the integer larger than or equal to x.
x
math.ceil( x )
Number. A number.
print( math.ceil(0.5) ) ---> 1 print( math.ceil(-0.5) ) ---> -0