Class: NumberFormatter

localization~ NumberFormatter

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 Intl.NumberFormat constructor.

options object <optional>

Passed to the Intl.NumberFormat constructor.

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 Intl.NumberFormat.)

Implements:
Tutorials:

Extends

  • Formatter