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

API: DecimalFormat formats BigDecimal incorrectly

    XMLWordPrintable

Details

    • b30
    • generic, unknown, x86, sparc
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: