aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/xpath/functions/round/index.md
blob: d711589de7baf6b5e4fbfe536288eec785336cbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
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

- \-0.5 est arrondi à zéro négatif. 0.4 est arrondi à zéro positif.

### Définition

[XPath 1.0, section 4.4](http://www.w3.org/TR/xpath#function-round).

### Support Gecko

Supportée.