NumberFormatOptions
Settings for the formatNumber
and parseNumber
functions.
For a runnable example, refer to the article on date and number formatting and parsing.
Name | Type | Default | Description |
---|---|---|---|
currency? |
|
Defines the currency code of the currency that is used in the formatting. If not specified, the default currency for the locale is used. | |
currencyDisplay? |
|
Specifies how to display the currency. | |
maximumFractionDigits? |
|
Defines the maximum number of fraction digits that will be used.
The default value of the decimal formatting is the greater one between | |
minimumFractionDigits? |
|
Defines the minimum number of fraction digits that will be used.
The default value of the decimal and percent formatting is | |
minimumIntegerDigits? |
|
Defines the minimum number of integer digits that will be used in the formatting. | |
style? |
|
Specifies the format style. | |
useGrouping? |
|
Specifies whether to use grouping separators. |