ceiling Function
A version of this page is also available for
4/8/2010
Returns the smallest integer that is not less than the argument.
Syntax
number ceiling(number)
Parameters
- number
A number.
Return Value
Returns the smallest integer that is not less than the argument.
Remarks
The following function call returns 3.
ceiling(2.5)
The following function call returns –2.
ceiling(-2.3)
The following function call returns 4.
ceiling(4)