floor

floor

> Functions

Returns number rounded down to the nearest integer. You can round up with ceil, and round to the nearest integer with round.

Parameters
Return
Examples

floor(1) // 1 floor(1.8) // 1 floor(2.3) // 2 floor(3.5) // 3 floor(-12.79) // -13

See also