aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/xpath/functions/format-number
diff options
context:
space:
mode:
authorFlorian Merz <me@fiji-flo.de>2021-02-11 12:36:08 +0100
committerFlorian Merz <me@fiji-flo.de>2021-02-11 12:36:08 +0100
commit39f2114f9797eb51994966c6bb8ff1814c9a4da8 (patch)
tree66dbd9c921f56e440f8816ed29ac23682a1ac4ef /files/fr/web/xpath/functions/format-number
parent8260a606c143e6b55a467edf017a56bdcd6cba7e (diff)
downloadtranslated-content-39f2114f9797eb51994966c6bb8ff1814c9a4da8.tar.gz
translated-content-39f2114f9797eb51994966c6bb8ff1814c9a4da8.tar.bz2
translated-content-39f2114f9797eb51994966c6bb8ff1814c9a4da8.zip
unslug fr: move
Diffstat (limited to 'files/fr/web/xpath/functions/format-number')
-rw-r--r--files/fr/web/xpath/functions/format-number/index.html38
1 files changed, 38 insertions, 0 deletions
diff --git a/files/fr/web/xpath/functions/format-number/index.html b/files/fr/web/xpath/functions/format-number/index.html
new file mode 100644
index 0000000000..a9027215bc
--- /dev/null
+++ b/files/fr/web/xpath/functions/format-number/index.html
@@ -0,0 +1,38 @@
+---
+title: format-number
+slug: Web/XPath/Fonctions/format-number
+tags:
+ - Référence_XSLT
+translation_of: Web/XPath/Functions/format-number
+---
+<p>
+{{ XsltRef() }}
+</p><p><br>
+La fonction <code>format-number</code> évalue un nombre et retourne une chaîne représentant le nombre dans un format donné.
+</p>
+<h3 id="Syntaxe" name="Syntaxe"> Syntaxe </h3>
+<pre class="eval">format-number( <i>nombre</i> , <i>motif</i> [, <i>format-décimal</i>] )
+</pre>
+<h3 id="Arguments" name="Arguments"> Arguments </h3>
+<dl><dt><code><i>nombre</i></code>
+</dt><dd>Le nombre à formater.
+</dd></dl>
+<dl><dt><code><i>motif</i></code>
+</dt><dd>Une chaîne au format de la classe <a href="http://java.sun.com/products/jdk/1.1/docs/api/java.text.DecimalFormat.html" class="external">Decimal Format (en)</a> du JDK 1.1. La notice du JDK 1.1 n'est plus disponible. Vous trouverez ici la notice pour le JSE 6: <a href="http://java.sun.com/javase/6/docs/api/java/text/DecimalFormat.html" class="external">Decimal Format (en)</a>
+</dd></dl>
+<dl><dt><code><i>format-décimal</i></code> (optionnel)
+</dt><dd>Le nom d'un élément <code><a href="fr/XSLT/decimal-format"> xsl:decimal-format</a></code> qui définit le format de nombre à utiliser. Si il est omis, le format décimal par défaut est utilisé.
+</dd></dl>
+<h3 id="Retour" name="Retour"> Retour </h3>
+<p>Une chaîne représentant le nombre dans le nouveau format.
+</p>
+<h3 id="Notes" name="Notes"> Notes </h3>
+<p>Cette fonction est un ajout à XPath spécifique à XSLT. Elle ne fait pas partie de la bibliothèque de fonctions XPath principale.
+</p>
+<h3 id="D.C3.A9finition" name="D.C3.A9finition"> Définition </h3>
+<p><a href="http://www.w3.org/TR/xslt#function-format-number" class="external">XSLT 1.0, section 12.3</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>{{ languages( { "en": "en/XPath/Functions/format-number", "pl": "pl/XPath/Funkcje/format-number" } ) }}