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

API: DecimalFormat formats BigDecimal incorrectly

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b30
    • CPU:
      generic, unknown, x86, sparc
    • OS:
      generic, solaris_2.5, windows_95, windows_nt, windows_2000

      Description

      Currently, the java.text package does not contain a derivation of the
      Format class for the Bignum class (e.g. BignumFormat) which allows
      for the correct formatting and parsing of Bignum values.

      The only way around this at present is to coerce Bignum's to doubles and
      use the DecimalFormat class. The resulting number though can result
      in a loss of precision.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              peytoia Yuka Kamiya (Inactive)
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: