Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8177552

Compact Number Formatting support

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P3
    • 12
    • None
    • core-libs
    • b24
    • generic
    • generic

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              nishjain Nishit Jain
              naoto Naoto Sato
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: