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

java.lang.Bignum constructor(double,int) works wrong with small values

XMLWordPrintable

    • sparc
    • solaris_2.5

      scale is incorrect, decimal point position is wrong:
      ==== here is the minimized test ====
      class java_lang_Bignum_constructor_1 {
        public static void main(String args[]) {
          System.out.println(new java.lang.Bignum(Double.MIN_VALUE,500));
        }
      }
      ==== here is the output of the test ====
      4900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0

            mhapnersunw Mark Hapner (Inactive)
            mgorshen Mikhail Gorshenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: