aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/xpath/functions/format-number/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/xpath/functions/format-number/index.html
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/xpath/functions/format-number/index.html')
-rw-r--r--files/ja/web/xpath/functions/format-number/index.html49
1 files changed, 49 insertions, 0 deletions
diff --git a/files/ja/web/xpath/functions/format-number/index.html b/files/ja/web/xpath/functions/format-number/index.html
new file mode 100644
index 0000000000..5cdd42c5bf
--- /dev/null
+++ b/files/ja/web/xpath/functions/format-number/index.html
@@ -0,0 +1,49 @@
+---
+title: format-number
+slug: Web/XPath/Functions/format-number
+tags:
+ - XSLT
+ - XSLT_Reference
+translation_of: Web/XPath/Functions/format-number
+---
+<p>{{ XsltRef() }}</p>
+
+<p><code>format-number</code>関数は数値を評価し、与えられた形式の数値を表す文字列を返します。</p>
+
+<h3 id="Syntax" name="Syntax">構文</h3>
+
+<pre class="eval">format-number(<em>number</em> ,<em>pattern</em> [,<em>decimal-format</em>] )
+</pre>
+
+<h3 id="Arguments" name="Arguments">引数</h3>
+
+<dl>
+ <dt><code><em>number</em></code></dt>
+ <dd>フォーマットする数値</dd>
+</dl>
+
+<dl>
+ <dt><code><em>pattern</em></code></dt>
+ <dd>JDK 1.1 DecimalFormatクラスの形式の文字列。(<a href="http://java.sun.com/products/archive/jdk/1.1/">JDK 1.1</a>のドキュメントはオンラインでは入手できません。<a href="https://docs.oracle.com/javase/jp/6/api/java/text/DecimalFormat.html">Java SE 6 DecimalFormat</a>はこちらです)</dd>
+</dl>
+
+<dl>
+ <dt><code><em>decimal-format</em></code> (任意)</dt>
+ <dd>使用する数値書式を定義する<code><a href="/ja/docs/XSLT/Elements/decimal-format">xsl:decimal-format</a></code>要素の名前。省略すると、デフォルトの10進形式が使用されます。</dd>
+</dl>
+
+<h3 id="Returns" name="Returns">戻り値</h3>
+
+<p>新しい形式の数値を表す文字列。</p>
+
+<h3 id="Notes" name="Notes">注記</h3>
+
+<p>この関数はXPathへのXSLT固有の追加です。コアXPath関数ライブラリの一部ではありません。</p>
+
+<h3 id="Defined" name="Defined">定義</h3>
+
+<p><a class="external" href="http://www.w3.org/TR/xslt#function-format-number">XSLT 1.0 12.3</a></p>
+
+<h3 id="Gecko_support" name="Gecko_support">Gecko のサポート</h3>
+
+<p>サポート済み</p>