ceil

Return the ceiling of a given number. This is the smallest integer >= the given number.

This function does not generate a change.

Function

ceil(number)

Arguments

Argument Type Description
number int/float (required) Input number

Return value

Returns with an int or an overflow_err() when outside the range of INT_MIN and INT_MAX.

Example

ceil() function example:

ceil(4.31);

Return value in JSON format

5