Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
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.

Copy Code
ceiling(2.5)

The following function call returns –2.

Copy Code
ceiling(-2.3)

The following function call returns 4.

Copy Code
ceiling(4)

See Also