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

Both Float.stringOf() and Double.stringOf loose precision

XMLWordPrintable

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

      public class DoubleTest {
          public static void main (String args[]) {
      double d = 1.79769313486231570e+308;
      System.out.println
      ("The value 1.79769313486231570e+308 is " +
      Double.doubleToLongBits(d) + "in long bits");
      System.out.println
      ("The value 1.79769313486231570e+308 is " +
      d); }
      }

            duke J. Duke
            mhapnersunw Mark Hapner (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: