Since ICU 60, the recommended mechanism for formatting numbers is NumberFormatter (Java). NumberFormatter supports the formatting of:
- Decimal Formatting
- Measurement Units
- Scientific Notation
- Compact Notation
For number ranges, including currency and measurement unit ranges, see NumberRangeFormatter (Java).
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.