JDK-4482734 : [Fmt-Nu] RFE: DecimalFormat rounding mode should be configurable
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.text
  • Affected Version: 1.3.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2001-07-21
  • Updated: 2006-01-31
  • Resolved: 2006-01-31
Related Reports
Duplicate :  
Description
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)

Comments
EVALUATION This has been fixed in Mustang-b26. So, I close this bug as a duplicate of 4092330.
31-01-2006

EVALUATION Name: nl37777 Date: 12/09/2002 This sounds like a reasonable request. Will consider for next API release. ======================================================================
17-09-2004