floor
Round down a number to the nearest smaller integer.
g.floor(42.9);
If the number is an integer, return the number itself.
g.floor(67);
See Also
- ceil: Round up a number to the nearest bigger integer.
- round: Round off a number to the nearest integer.