Floor()
Jump to navigation
Jump to search
Description
Returns the largest integer less than or equal to number. number may be a floating point number, and an integer result is returned.
Related Topics: ceil(), fdiv(), mod(), round(), trunc().
Examples
- > say floor(5)
- You say "5"
- > say floor(5.2)
- You say "5"
- > say floor(5.8)
- You say "5"
- > say floor(-5)
- You say "-5"
- > say floor(-5.2)
- You say "-6"
(--Soylent 00:57, 3 December 2005 (EST))