--- title: round slug: Web/XPath/Functions/round tags: - Référence_XSLT translation_of: Web/XPath/Functions/round original_slug: Web/XPath/Fonctions/round ---

{{ XsltRef() }}


La fonction round retourne le nombre entier le plus proche d'un nombre donné.

Syntaxe

round( décimal )

Arguments

décimal
Le nombre décimal à arrondir.

Retour

Le plus proche nombre entier, qu'il soit plus grand, plus petit ou égal à decimal.

Notes

Définition

XPath 1.0, section 4.4.

Support Gecko

Supportée.

Interwiki Languages Links

{{ languages( { "en": "en/XPath/Functions/round", "ja": "ja/XPath/Functions/round", "pl": "pl/XPath/Funkcje/round" } ) }}