Math Floor
The math::floor function rounds a number down to the nearest integer.
Syntax
math::floor(<number>)Parameters
number: The input number to be rounded down.
Returns
- Number: The largest integer less than or equal to the input number.
Example
math::floor(3.14)This function is useful for rounding calculations where the next lowest integer is needed.