Visit Mozilla.org

XPath:Functions:ceiling

From MDC

XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes

Contents


The ceiling function evaluates a decimal number and returns the smallest integer greater than or equal to the decimal number.

[edit] Syntax

ceiling( number )

[edit] Arguments

number
The number to be evaluated.

[edit] Returns

The nearest integer greater than or equal to number.

for example:

    ceiling (5.2) = 6

    ceiling (-5.2) = -5

[edit] Defined

XPath 1.0 4.4

[edit] Gecko support

Supported.