wrong printing of the result of negation of NaN values

XMLWordPrintable

    • 1.1
    • sparc
    • generic
    • Not verified



      Name: ###@###.### Date: 09/05/96

      the result of negation NaN values is printed as -NaN instead
                   of NaN

      Tests: 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

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: