floor

floor

> Functions

Calculates the rounding down of number. You can find rounding up with ceil, and rounding 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 as well