Link Search Menu Expand Document

Formatting Numbers

Since ICU 60, the recommended mechanism for formatting numbers is NumberFormatter (Java). NumberFormatter supports the formatting of:

  • Decimal Formatting
  • Currencies
  • Measurement Units
  • Percentages
  • 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

For the classic NumberFormat class, which also includes legacy parsing support for localized number strings, see

Table of contents