math.ceil() function

The math.ceil() function returns the least integer value greater than or equal to x.

*Output data type: Float*

  1. import "math"
  2. math.ceil(x: 3.14)
  3. // Returns 4.0

Parameters

x

The value used in the operation.

*Data type: Float*

Special cases

  1. math.ceil0) // Returns ±0
  2. math.ceilInf) // Returns ±Inf
  3. math.ceil(NaN) // Returns NaN