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

wrong evaluation of the Math.IEEEremainder function in Windows

XMLWordPrintable

    • 1.1
    • sparc
    • solaris_2.4
    • Not verified



      Name: swC45995 Date: 10/07/96


      In Windows java incorrectly calculates the IEEE remainder operation.
      For example, execution of the following test:

      public class test
      {
      public static void main(String argv[])
      {
      System.out.println(Math.IEEEremainder(11.0d, 7.0d));
      }
      }

      produces 3 instead of expected -3.

      ======================================================================

            egilbertsunw Eric Gilbertson (Inactive)
            wensunw Wen Wen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: