Return the floor of a given number. This is the largest integer <= the given number.
This function does not generate a change.
floor(number)
Argument | Type | Description |
---|---|---|
number | int/float (required) | Input number |
Returns with an int or an overflow_err() when outside the range of INT_MIN
and INT_MAX
.
floor() function example:
floor(4.31);
Return value in JSON format
4