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

[Fmt-Nu] RFE: DecimalFormat rounding mode should be configurable

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.3.0
    • core-libs
    • None
    • generic
    • generic

      Name: krC82822 Date: 10/23/2000


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)


      The DecimalFormat class performs a round-to-half-even mode, which I don't find
      terribly suitable for formatting. See bug 4241880. The BigDecimal class provides
      a convenient way of selecting an appropriate rounding mode, and I think
      DecimalFormat should support the same set of rounding modes.
      (Review ID: 111215)

            peytoia Yuka Kamiya (Inactive)
            nlindenbsunw Norbert Lindenberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: