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

DecimalFormat rounding not IEEE conformant

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.1.6
    • CPU:
      x86
    • OS:
      windows_nt
    • Verification:
      Verified

      Backports

        Description



        Name: bb33257 Date: 11/18/97


        Java is supposed to conform to the IEEE floating point standard
        as much as possible. This should include the behavior of
        rounding, including the rounding of numbers formatted by the
        DecimalFormat class.

        The IEEE standard specifies a default rounding method known as
        `round to nearest or even.' This method rounds to an even digit
        if digits being rounded off are exactly `50000...'

        DecimalFormat currently implements `round to nearest' instead of
        `round to nearest or event.' [asl]
        ======================================================================

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: