JDK-6609738 : Provide member function for changing rounding method in NumberFormat
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.text
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2007-09-26
  • Updated: 2010-07-29
  • Resolved: 2007-09-26
Related Reports
Duplicate :  
Description
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.

Comments
EVALUATION Duplicate of 4092330.
26-09-2007