JS: Intl.NumberFormat

By Xah Lee. Date: .
Intl.NumberFormat
console.log(new Intl.NumberFormat("en-US").format(123456.789));
// 123,456.789
xtodo

Static methods

Intl.NumberFormat.supportedLocalesOf
Returns an array containing those of the provided locales that are supported without having to fall back to the runtime's default locale.

Instance properties

Intl.NumberFormat.prototype.constructor

Instance methods

Intl.NumberFormat.prototype.format
Intl.NumberFormat.prototype.formatRange
Intl.NumberFormat.prototype.formatRangeToParts
Intl.NumberFormat.prototype.formatToParts
Intl.NumberFormat.prototype.resolvedOptions