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

difference in printing floating-point values in Solaris and Windows

XMLWordPrintable

    • 1.1
    • x86, sparc
    • solaris_2.4, solaris_2.5
    • Not verified



      Name: swC45995 Date: 10/07/96


      In Solaris if the magnitude of the exponent part of a floating-point value
      is small enough, java prints only two digits. At the same time, in Windows
      three digits are always printed. Thus execution of the following test:

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

      produces the following results:

      in Solaris: 3.40282e+38
      in Windows: 3.40282e+038

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: