OptionalcompactShort or long affixes for compact notation. Defaults to short.
OptionalcompactFixes a power-of-ten scale while retaining the locale's compact affix. The exponent must start a compact magnitude in the selected locale.
OptionaldecimalReplace the locale-derived decimal part after Intl formatting.
OptionalgroupReplace the locale-derived grouping part after Intl formatting.
OptionalinfinityReplacement for the localized infinity magnitude.
Selects the built-in measurement-unit codec.
OptionallocaleBCP 47 locale overriding the formatter default for this operation.
OptionalmaximumMaximum fraction digits, rounding excess digits. Does not require that many digits to be shown.
OptionalmaximumMaximum number of significant digits.
OptionalminimumMinimum fraction digits, padding with zeros as needed. Set both fraction limits for fixed precision.
OptionalminimumMinimum number of integer digits.
OptionalminimumMinimum number of significant digits.
OptionalnanReplacement for the localized NaN magnitude.
OptionalnegativeRender displayed negative signs as parentheses. Defaults to "sign".
OptionalnotationDecimal notation style. Defaults to standard.
OptionalnumberingUnicode numbering-system identifier, such as latn or arab.
OptionalroundingIncrement at the configured fraction precision. For example, 5 with both
fraction limits set to 2 rounds to multiples of 0.05. Intl requires equal
fraction limits and rejects incompatible significant-digit options.
OptionalroundingRounding direction used when precision reduces the value. Defaults to halfExpand.
OptionalroundingChooses the winning precision rule when fraction and significant digits are both configured.
OptionalsignControls when a positive or negative sign is displayed.
OptionaltrailingWhether insignificant trailing zeroes are retained.
An Intl sanctioned simple or compound unit identifier, such as "meter" or "kilometer-per-hour".
OptionalunitWidth of the localized unit label. Defaults to short.
OptionalunitReplace the locale-derived unit part without changing its placement.
OptionaluseLocalized digit-grouping behavior.
OptionalzeroWhole-output replacement for displayed zero, including rounded and negative zero.
Omits signs and affixes. Parsing recognizes it as "0" before ordinary numeric
syntax, so choose text that does not collide with a nonzero presentation.
Locale-aware measurement-unit specification.
This is presentation only: values are not converted between units.
Example