Optionalbyte1024 for IEC units or 1000 for SI units. Defaults to 1024.
OptionalbyteFixes one byte magnitude (0 = B, 1 = kB/KiB, ... 8 = YB/YiB).
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 bytes 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".
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.
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 SI or IEC byte-size specification.
Example