Subject: | bdiv() returns incorrect remainder when BigInts are autoupgraded to BigFloats |
The docs say that ($q,$r) = $x->bdiv($y) returns $q and $r so that $x =
$q*$y + $r, but this does not hold in the following case:
$ perl -MMath::BigInt=upgrade,Math::BigFloat -MMath::BigFloat -wle '$x =
Math::BigInt->new(22); $y = Math::BigFloat->new(7); print for $x->bdiv($y)'
3.142857142857142857142857142857142857143
1
The remainder should be zero.