Options
All
  • Public
  • Public/Protected
  • All
Menu

Pre-defined format specifiers for use with formatNumber().

Hierarchy

  • NumberFormat

Index

Properties

Static ACCOUNTING

ACCOUNTING: string

Same as CURRENCY, except that negative values are displayed in parentheses instead of using a "-" sign.

Static CURRENCY

CURRENCY: string

A localized representation of a monetary amount in a specific currency (e.g. "$123.45" for USD, "£123.45" for GBP for en-US locale).

Static DEFAULT

DEFAULT: string

The default representation for number values (equivalent to FIXED_POINT).

Static FIXED_POINT

FIXED_POINT: string

A localized representation of a number with a decimal separator (e.g. "12345.67", "-42" for en-US locale).

Static NUMBER

NUMBER: string

A localized representation of a number with a decimal separator and group separators (e.g. "12,345.67", "-42" for en-US locale).

Static PERCENT

PERCENT: string

A localized representation of a percentage (e.g. 0.99 -> "99%" in the en-US locale).

Static ROUND_TRIP

ROUND_TRIP: string

An invariant representation of a number (e.g. "12345.67"). Guarantees that the number can be parsed back into the same number, regardless of locale.