Other |
---|
5.0 tigerFixed |
Relates :
|
|
Relates :
|
The pow(int) method added in jsr13 calculates the return value with return new BigDecimal(intVal.pow(n), scale * n); This scale calculation is not properly guarded against integer over/underflow, allowing for potentially very misleading results. Additionally, the calculation of 0^n should probably be special-cased.
|