# Intl.NumberFormat
## Syntax
```javascript
new Intl.NumberFormat([locales[, options]])
Intl.NumberFormat.call(this[, locales[, options]])
```
### Parameters
…
- options
-
Optional. An object with some or all of the following properties:
…
- abbreviationThreshold
- Numbers whose absolute value is greater than this number will be abbreviated. Possible values are from
0 to Infinity; the default is Infinity, which effectively disables abbreviation.
- abbreviationRoundingMethod
- The rounding behavior to exhibit when abbreviating a number. Possible values are
Intl.NumberFormat.ROUND_CEILING, Intl.NumberFormat.ROUND_FLOOR, Intl.NumberFormat.ROUND_UP, Intl.NumberFormat.ROUND_DOWN, Intl.NumberFormat.ROUND_HALF_DOWN, Intl.NumberFormat.ROUND_HALF_EVEN, and Intl.NumberFormat.ROUND_HALF_UP; the default is Intl.NumberFormat.ROUND_HALF_CEILING. For more information about rounding modes, see rounding modes.
…
…
## Examples
…
### Example: Using `options`
The results can be customized using the options argument:
```javascript
var number = 1234567.89;
…
// abbreviate a number
console.log(new Intl.NumberFormat('en-US', { abbreviationThreshold: 1e6, maximumSignificantDigits: 3 }).format(number));
// → 1.23M
console.log(new Intl.NumberFormat('en-US', { abbreviationThreshold: 1e6, style: 'currency', maximumSignificantDigits: 3 }).format(number));
// → $1.23M
console.log(new Intl.NumberFormat('ja-JP', { abbreviationThreshold: 1e6, maximumSignificantDigits: 3 }).format(number));
// → 123万
…
```
## Addendum
### Rounding modes
- Intl.NumberFormat.ROUND_CEILING
- Rounding mode to round towards positive infinity.
- Intl.NumberFormat.ROUND_FLOOR
- Rounding mode to round towards negative infinity.
- Intl.NumberFormat.ROUND_DOWN
- Rounding mode to round towards zero.
- Intl.NumberFormat.ROUND_UP
- Rounding mode to round away from zero.
- Intl.NumberFormat.ROUND_HALF_CEILING
- Rounding mode to round towards "nearest neighbor" unless both neighbors are equidistant, in which case round towards positive infinity.
- Intl.NumberFormat.ROUND_HALF_UP
- Rounding mode to round towards "nearest neighbor" unless both neighbors are equidistant, in which case round up.
- Intl.NumberFormat.ROUND_HALF_EVEN
- Rounding mode to round towards the "nearest neighbor" unless both neighbors are equidistant, in which case, round towards the even neighbor.
- Intl.NumberFormat.ROUND_HALF_FLOOR
- Rounding mode to round towards "nearest neighbor" unless both neighbors are equidistant, in which case round towards negative infinity.
- Intl.NumberFormat.ROUND_HALF_DOWN
- Rounding mode to round towards "nearest neighbor" unless both neighbors are equidistant, in which case round down.