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

floating point remainder differs between Solaris and Windows

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.0prebeta2
    • CPU:
      sparc
    • OS:
      solaris_2.4
    • Verification:
      Not verified

      Description

      The Solaris version of Java uses the remainder() function to calculate
      the floating point remainder operator. This function returns a value
      that is within +/- half of the magnitude of the dividend.

      On Windows, the fmod() function is used to calculate the result. This
      function returns a number that has the same sign as the divisor and
      magnitude less than the dividend.

      It appears, based on recent mail from Richard Tuck, that Java defines the
      behaviour of remainder() as the behaviour of the mod operator on floats.
      Unfortunately, there is no remainder() function on Windows, so we will have
      to code around this issue. The specification should be verified just in
      case since the email I saw didn't quote actual text from the Java Language
      Spec...

        Attachments

          Activity

            People

            Assignee:
            flar Jim Graham
            Reporter:
            flar Jim Graham
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: