* java/math/BigDecimal.java (divide): Fixed comment.
From-SVN: r38862
This commit is contained in:
parent
698489049d
commit
737c87df28
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2001-01-10 Warren Levy <warrenl@redhat.com>
|
||||||
|
|
||||||
|
* java/math/BigDecimal.java (divide): Fixed comment.
|
||||||
|
|
||||||
2001-01-10 Warren Levy <warrenl@redhat.com>
|
2001-01-10 Warren Levy <warrenl@redhat.com>
|
||||||
|
|
||||||
Fix for PR libgcj/1596:
|
Fix for PR libgcj/1596:
|
||||||
|
|
|
@ -146,7 +146,7 @@ public class BigDecimal extends Number implements Comparable {
|
||||||
if (power < 0)
|
if (power < 0)
|
||||||
{
|
{
|
||||||
// Effectively increase the scale of val to avoid an
|
// Effectively increase the scale of val to avoid an
|
||||||
// IllegalArgumentException for a negative power.
|
// ArithmeticException for a negative power.
|
||||||
valIntVal = valIntVal.multiply (BigInteger.valueOf (10).pow (-power));
|
valIntVal = valIntVal.multiply (BigInteger.valueOf (10).pow (-power));
|
||||||
power = 0;
|
power = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue