floor()
Returns the largest integer less than or equal to the given numeric value.
Syntax
Parameters
| Parameter | Type | Description | |
| value | Number | Numeric value to apply floor to. | |
Return Value
Examples
floor(3.2); // returns 3
floor(3.0); // returns 3
floor(-1.2); // returns -2
See also