Optional
locales: string | string[]Optional
options: NumberFormatOptionsFormats a number according to the locale and formatting options of this NumberFormat object
Number or BigInt to format
String representing the given number formatted according to the locale and formatting options of this NumberFormat object
Formats a range of numbers according to the locale and formatting options of this NumberFormat object
Number or bigint representing the start of the range
Number or bigint representing the end of the range
String representing the given range of numbers formatted according to the locale and formatting options of this NumberFormat object
Returns an array of objects containing the locale-specific tokens from which it is possible to build custom strings while preserving the locale-specific parts.
Number or bigint representing start of the range
Number or bigint representing end of the range
Array of NumberRangeFormatPart objects containing the formatted range of numbers in parts
Allows locale-aware formatting of strings produced by this NumberFormat object
Number or bigint to format
Array of NumberFormatPart objects containing the formatted number in parts
Returns a new object with properties reflecting the locale and number formatting options computed during initialization of this NumberFormat object
ResolvedNumberFormatOptions object
Enables language-sensitive number formatting. Wraps Intl.NumberFormat