Number Formatter Styles

Predefined number format styles.


The format for these number styles is not exact because they depend on the locale, user preference settings, and operating system version. Do not use these constants if you want an exact format (for example, if you are parsing data in a given format). In general, however, you are encouraged to use these styles to accommodate user preferences.



case noStyle

Specifies no style.

case decimalStyle

Specifies a decimal style format.

case currencyStyle

Specifies a currency style format.

case percentStyle

Specifies a percent style format.

case scientificStyle

Specifies a scientific style format.

case spellOutStyle

Specifies a spelled out format.