floor

Return the floor of a given number. This is the largest integer <= the given number.

This function does not generate a change.

Function

floor(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

floor() function example:

floor(4.31);

Return value in JSON format

4