aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/xpath/functions/round/index.html
blob: 1df56438d7317e2ba41c72663077c5af694455a7 (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
---
<p>
{{ XsltRef() }}
</p><p><br>
La fonction <code>round</code> retourne le nombre entier le plus proche d'un nombre donné.
</p>
<h3 id="Syntaxe" name="Syntaxe"> Syntaxe </h3>
<pre class="eval">round( <i>décimal</i> )
</pre>
<h3 id="Arguments" name="Arguments"> Arguments </h3>
<dl><dt><code><i>décimal</i></code>
</dt><dd>Le nombre décimal à arrondir.
</dd></dl>
<h3 id="Retour" name="Retour"> Retour </h3>
<p>Le plus proche nombre entier, qu'il soit plus grand, plus petit ou égal à <code><i>decimal</i></code>.
</p>
<h3 id="Notes" name="Notes"> Notes </h3>
<ul><li> -0.5 est arrondi à zéro négatif. 0.4 est arrondi à zéro positif.
</li></ul>
<h3 id="D.C3.A9finition" name="D.C3.A9finition"> Définition </h3>
<p><a href="http://www.w3.org/TR/xpath#function-round" class="external">XPath 1.0, section 4.4</a>.
</p>
<h3 id="Support_Gecko" name="Support_Gecko"> Support Gecko </h3>
<p>Supportée.
</p><p><span class="comment">Interwiki Languages Links</span>
</p>
<div class="noinclude">
</div>
{{ languages( { "en": "en/XPath/Functions/round", "ja": "ja/XPath/Functions/round", "pl": "pl/XPath/Funkcje/round" } ) }}