ceiling Function

A version of this page is also available for

Windows Embedded CE 6.0 R3

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)

See Also

Reference

XPath Number Functions