new NumberFormatter(defaultLocale, localeopt, optionsopt)
Create a number localizer.
Create an object conforming to localizerInterface
for numbers, using Intl.NumberFormat
.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
defaultLocale |
string | |||
locale |
string |
<optional> |
defaultLocale | Passed to the |
options |
object |
<optional> |
Passed to the |
|
options.acceptStandardDigits |
boolean |
<optional> |
false | Accept standard digits and decimal point interchangeably with localized digits and decimal point. (This option is interpreted here; it is not used by |
- Implements:
- Tutorials:
Extends
- Formatter