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

wrong printing of the result of negation of NaN values

    XMLWordPrintable

Details

    • 1.1
    • sparc
    • generic
    • Not verified

    Description



      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

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: