JDK-6796662 : (fmt spec) Formatter spec on BigDecimal output should not reference Float and Double
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-01-22
  • Updated: 2017-05-16
  • Resolved: 2011-05-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b136Fixed
Related Reports
Relates :  
Description
In the Formatter specification of handling of BigDecimal output for the 'e' and 'f' options, the outupt is phrased as "If the precision is less than the number of digits which would appear after the decimal point in the string returned by Float.toString(float) or Double.toString(double) respectively, then the value will be rounded using the round half up algorithm."  A more natural and more correct phrasing would be in terms of BigDecimal.scale() and BigDecimal.precision(), which clearly map to the related Formatter concepts.

Comments
EVALUATION Yes, a fine correction/clarification.
22-01-2009