Visit Mozilla.org

XPath:Fonctions:ceiling

Un article de MDC.

Référence XSLT/XPath : Éléments XSLT, Fonctions EXSLT, Fonctions XPath, Axes XPath

Sommaire


La fonction ceiling évalue un nombre décimal et retourne le plus petit nombre entier supérieur ou égal au nombre évalué.

[modifier] Syntaxe

ceiling( nombre )

[modifier] Arguments

nombre
Le nombre décimal à évaluer.

[modifier] Retour

Le plus petit entier supérieur ou égal à nombre.

Par exemple :

ceiling (5.2) = 6
ceiling (-5.2) = -5

[modifier] Définition

XPath 1.0, section 4.4.

[modifier] Support Gecko

Supportée.