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

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

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.5

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: