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

wrong printing the result of negation of NaN values

    Details

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

      Description



      Name: swC45995 Date: 10/07/96


      the result of negation NaN values is printed as -NaN instead of NaN. Thus
      execution of the following test:

      public class test
      {
      public static void main(String argv[])
      {
      System.out.println(- Float.NaN);
      System.out.println(- Double.NaN);
      }
      }

      produced such output:

      -NaN
      -NaN

      instead of expected:

      NaN
      NaN

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

        Attachments

          Activity

            People

            • Assignee:
              duke J. Duke (Inactive)
              Reporter:
              wensunw Wen Wen (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: