Function: math.floor

Returns the floor of a number.

Rounds down to the largest integer less than or equal to a given number.

Arguments

Arguments
x An integer or floating-point number.

Raised exceptions

Exceptions
TypeError If x is not an integer or floating-point number.

Examples

Example 1

# Return floor of a number
# For example, returns `23` 
- returnStep:
    return: ${math.floor(23.67)}

Example 2

# Return floor of a number
# For example, returns `-24` 
- returnStep:
    return: ${math.floor(-23.67)}

Example 3

# Return floor of a number
# For example, returns `0` 
- returnStep:
    return: ${math.floor(0)}