From 869dd2069c695ee7040cd3261713212155819f42 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Mon, 14 Dec 2020 12:18:12 -0500 Subject: final dump 2020-12-14 --- .../intl/numberformat/numberformat/index.html | 56 +++++++++++----------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'files/ja/web/javascript/reference/global_objects') diff --git a/files/ja/web/javascript/reference/global_objects/intl/numberformat/numberformat/index.html b/files/ja/web/javascript/reference/global_objects/intl/numberformat/numberformat/index.html index 2a1932a00b..c424b35d1d 100644 --- a/files/ja/web/javascript/reference/global_objects/intl/numberformat/numberformat/index.html +++ b/files/ja/web/javascript/reference/global_objects/intl/numberformat/numberformat/index.html @@ -12,7 +12,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/Number ---
{{JSRef}}
-

Intl.NumberFormat() コンストラクターは、言語に依存した数値の書式を有効にするオブジェクトを生成します。

+

Intl.NumberFormat() コンストラクターは、言語に依存した数値の整形ができるオブジェクトを生成します。

{{EmbedInteractiveExample("pages/js/intl-numberformat.html")}}
@@ -60,30 +60,30 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/Number
notation
数値を表示するための書式です。既定値は "standard" です。
numberingSystem
-
Numbering System. Possible values include: "arab", "arabext", " bali", "beng", "deva", "fullwide", " gujr", "guru", "hanidec", "khmr", " knda", "laoo", "latn", "limb", "mlym", " mong", "mymr", "orya", "tamldec", " telu", "thai", "tibt".
+
数値体系です。使用可能な値には、 "arab", "arabext", " bali", "beng", "deva", "fullwide", " gujr", "guru", "hanidec", "khmr", " knda", "laoo", "latn", "limb", "mlym", " mong", "mymr", "orya", "tamldec", " telu", "thai", "tibt" があります。
signDisplay
-
When to display the sign for the number; defaults to "auto" +
数値の符号を表示するときです。既定値は "auto" です。
style
-
The formatting style to use , the default is "decimal". +
使用する整形スタイルで、既定値は "decimal" です。
unit
@@ -120,16 +120,16 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/Number

-

Basic usage

+

基本的な使用

-

In basic use without specifying a locale, a formatted string in the default locale and with default options is returned.

+

特定のロケールなしで使用すると、既定のロケール、既定のオプションで整形された文字列が返されます。

let amount = 3500;
 
 console.log(new Intl.NumberFormat().format(amount));
 // → '3,500' if in US English locale
-

Decimal and percent formatting

+

十進数とパーセントの整形

let amount = 3500;
 
@@ -139,9 +139,9 @@ new Intl.NumberFormat('en-US', {style: 'percent'}).format(amount);
 // → '350,000%'
 
-

Unit formatting

+

単位の整形

-

If the style is 'unit', a unit property must be provided. Optionally, unitDisplay controls the unit formatting.

+

style'unit' である場合、 unit プロパティを提供する必要があります。オプションで、 unitDisplay が単位の整形を制御します。

let amount = 3500;
 
@@ -152,9 +152,9 @@ new Intl.NumberFormat('en-US', {style: 'unit', unit: 'liter', unitDisplay: 'long
 // → '3,500 liters'
 
-

Currency formatting

+

通貨の整形

-

If the style is 'currency', a currency property must be provided. Optionally, currencyDisplay and currencySign control the unit formatting.

+

style'currency' であった場合、 currency プロパティを提供する必要があります。オプションで、 currencyDisplay および currencySign が単位の整形を制御します。

let amount = -3500;
 new Intl.NumberFormat('en-US', {style: 'currency', currency: 'USD'}).format(amount);
@@ -175,9 +175,9 @@ new Intl.NumberFormat('bn', {
 // →  '($3,500.00)'
 
-

Scientific, engineering or compact notations

+

科学、工学、短縮表記

-

Scientific and compact notation are represented by the notation option and can be formatted like this:

+

科学の短縮表記は notation オプションで表すことができ、以下のようになります。

new Intl.NumberFormat('en-US', { notation: "scientific" }).format(987654321);
 // → 9.877E8
@@ -206,9 +206,9 @@ new Intl.NumberFormat('en-GB', {
 }).format(987654321);
 // → 988M
-

Displaying signs

+

符号の表示

-

Display a sign for positive and negative numbers, but not zero:

+

正の数と負の数に符号を表示し、ゼロには表示しない場合は次のようにします。

new Intl.NumberFormat("en-US", {
     style: "percent",
@@ -216,7 +216,7 @@ new Intl.NumberFormat('en-GB', {
 }).format(0.55);
 // → '+55%'
-

Note that when the currency sign is "accounting", parentheses might be used instead of a minus sign:

+

なお、通貨の符号が "accounting" である場合、負号の代わりに括弧が使用されることがあります。

new Intl.NumberFormat('bn', {
   style: 'currency',
-- 
cgit v1.2.3-54-g00ecf