Intl.NumberFormat.prototype

The Intl.NumberFormat.prototype property represents the prototype object for the Intl.NumberFormat constructor.

Property attributes of Intl.NumberFormat.prototype
Writable no
Enumerable no
Configurable no

Description

See NumberFormat for a description of Intl.NumberFormat instances.

Intl.NumberFormat instances inherit from Intl.NumberFormat.prototype. Modifications to the prototype object are inherited by all Intl.NumberFormat instances.

Properties

Intl.NumberFormat.prototype.constructor
A reference to Intl.NumberFormat.

Methods

Intl.NumberFormat.prototype.format()
Getter function that formats a number according to the locale and formatting options of this NumberFormat object.
Intl.NumberFormat.prototype.formatToParts()
Returns an Array of objects representing the number string in parts that can be used for custom locale-aware formatting.
Intl.NumberFormat.prototype.resolvedOptions()
Returns a new object with properties reflecting the locale and collation options computed during initialization of the object.

Specifications

Specification Status Comment
ECMAScript Internationalization API 1.0 (ECMA-402)
The definition of 'Intl.NumberFormat.prototype' in that specification.
Standard Initial definition.
ECMAScript Internationalization API 2.0 (ECMA-402)
The definition of 'Intl.NumberFormat.prototype' in that specification.
Standard  
ECMAScript Internationalization API 4.0 (ECMA-402)
The definition of 'Intl.NumberFormat.prototype' in that specification.
Draft  

Browser compatibility

Update compatibility data on GitHub
Desktop Mobile Server
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet Node.js
prototype Chrome Full support 24 Edge Full support 12 Firefox Full support 29 IE Full support 11 Opera Full support 15 Safari Full support 10 WebView Android Full support Yes Chrome Android Full support 26 Firefox Android Full support 56 Opera Android ? Safari iOS Full support 10 Samsung Internet Android Full support 1.5 nodejs ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown

See also