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

Provide member function for changing rounding method in NumberFormat

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 5.0
    • core-libs

      A DESCRIPTION OF THE REQUEST :
      Please provide a member function for changing the rounding method in the NumberFormat class. Only the ROUND_HALF_EVEN method is currently supported and it would be convenient to be able to set it to ROUND_FLOOR or ROUND_CEILING depending upon the application needs.

      JUSTIFICATION :
      It is necessary to manually perform any rounding method other than ROUND_HALF_EVEN prior to the call to format function if one needs to use a different rounding method based on application specifications, it would be much more convenient to be able to specify a different default method to the NumberFormat instance as one can do with BigDecimal. Thanks.

            naoto Naoto Sato
            okutsu Masayoshi Okutsu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: