math.floor
Supported in:
math.floor(float_val)
Description
Returns the largest integer value that is not greater than the supplied value (rounding down). Returns 0 if the input is null or too large to fit into an int64.
Param data types
FLOAT
Return type
INT
Code samples
Example 1
This example shows a positive number case.
math.floor(1.234568) = 1
Example 2
This example shows a negative number case.
math.floor(0-1.234568) = -2
Example 3
This example shows a zero case.
math.floor(0.000000) = 0