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

DecimalFormat % with 14 decimals broken

XMLWordPrintable

    • x86
    • windows_nt



      Name: bb33257 Date: 06/12/97


      I am seeing some odd behavior in the decimal number formatting demo
      in the Percent Format.

      When I click on the Decimals/Min box, if I enter a number larger
      than 13, I get some very odd results displayed in the "New number"
      field.

      For example, if the Java 1.0 number is -1234.56, and I enter 14
      places, the New Number is displayed as:

      -92,233.72036854775807%

      For English (US), although the language doesn't seem to matter.

      I am using Netscape Navigator 3.0 release under Windows NT 4.0 beta 2.
      [liu]
      ======================================================================

            joconnersunw John Oconner (Inactive)
            bcbeck Brian Beck (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: