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

(fmt spec) Formatter spec on BigDecimal output should not reference Float and Double

XMLWordPrintable

    • b136
    • generic
    • generic
    • Not verified

      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.

            sherman Xueming Shen
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: