JDK-8177552 : Compact Number Formatting support
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.text
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2017-03-24
  • Updated: 2018-12-18
  • Resolved: 2018-12-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 12
12 b24Fixed
Related Reports
CSR :  
Relates :  
Sub Tasks
JDK-8200470 :  
JDK-8214515 :  
The existing NumberFormat APIs provide features for formatting and parsing general numbers in various locales e.g. decimal, percent, scientific. Also, it has the support for formatting currencies. The support for formatting a number in its short/compact form is not available in the existing number formatting APIs. The resources provided by CLDR for formatting a number to its compact form can be utilized to add that support.

This RFE targets to support the short number formatting in JDK (http://cldr.unicode.org/translation/number-patterns#TOC-Short-Numbers). Here is the excerpt:

Short Numbers

There are also patterns for compact forms of numbers, such as the such as "1M" and "1 million". The pattern may be substantially different across languages, as can be seen by comparing the English patterns to the Japanese patterns in the table below.

(chart follows in the link above)

LDML for compact number format: http://unicode.org/reports/tr35/tr35-numbers.html#Compact_Number_Formats