Since ICU 60, the recommended mechanism for formatting numbers is
NumberFormatter supports the formatting of:
- Decimal Formatting
- Measurement Units
- Scientific Notation
- Compact Notation
For number ranges, including currency and measurement unit ranges, see
For rule-based number formatting, including spellout rules and support for traditional numbering systems not covered by base-10 decimal digits, see rbnf.md.
For the classic
NumberFormat class, which also includes legacy parsing support for localized number strings, see legacy-numberformat.md.
Table of contents
- Legacy NumberFormat
- Rounding Modes
- Number Skeletons
- RuleBasedNumberFormat Examples