floor Function
A version of this page is also available for
4/8/2010
Returns the largest integer that is not greater than the argument.
Syntax
number floor(number)
Parameters
- number
A number.
Return Value
Returns the largest integer that is not greater than the argument.
Remarks
The following function call returns 3.
floor(3.5)
The following function call returns –2.
floor(-1.3)
The following function call returns 4.
floor(4)