=== Here is the minimized test demonstrating the bug ===
import java.lang.Bignum;
class java_lang_Bignum_pow {
public static void main(String args[]) {
Bignum b=new Bignum("2.0");
System.out.println(b.pow(-1)); //should print "0.5"
}
}
=== Here is the test output ===
2.0
import java.lang.Bignum;
class java_lang_Bignum_pow {
public static void main(String args[]) {
Bignum b=new Bignum("2.0");
System.out.println(b.pow(-1)); //should print "0.5"
}
}
=== Here is the test output ===
2.0
- relates to
-
JDK-4014952 java.lang.Bignum.pow() methods works wrong with non-integral or negative numbers
-
- Closed
-