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