<i18n dev> RFR 8177552: Compact Number Formatting support

Nishit Jain nishit.jain at oracle.com
Fri Nov 16 17:54:21 UTC 2018


Hi,

Please review this non trivial feature addition to NumberFormat API.

The existing NumberFormat API provides locale based support for 
formatting and parsing numbers which includes formatting decimal, 
percent, currency etc, but the support for formatting a number into a 
human readable or compact form is missing. This RFE adds that feature to 
format a decimal number in a compact format (e.g. 1000 -> 1K, 1000000 -> 
1M in en_US locale) , which is useful for the environment where display 
space is limited, so that the formatted string can be displayed in that 
limited space. It is defined by LDML's specification for Compact Number 
Formats.

http://unicode.org/reports/tr35/tr35-numbers.html#Compact_Number_Formats


RFE: https://bugs.openjdk.java.net/browse/JDK-8177552
Webrev: http://cr.openjdk.java.net/~nishjain/8177552/webrevs/webrev.00/
CSR: https://bugs.openjdk.java.net/browse/JDK-8188147

Request to please help review the the change.

Regards,
Nishit Jain






More information about the i18n-dev mailing list