Subject: | bignum produces a Math::BigInt with a wrong value |

Date: | Wed, 13 May 2015 17:20:07 +0900 |

To: | bug-bignum [...] rt.cpan.org |

From: | Saito Takaaki <tails.saito [...] gmail.com> |

Greetings,
Let me report a strange behavior of Perl bignum which I think is a bug.
I am using Perl v5.14.4 and bignum 0.27 which may be a bit old
but is the latest in the Cygwin packages.
Sorry if it is already fixed.
The following code results in $y == 9 in Math::BigInt.
Please note $x is a scalar that is printed as 10.
I think $y should be 10 in BigInt, or a BigFloat with a value near 9.999.
$x=10/77*77;
use bignum;
$y=$x+0;
Thank you in advance.
--
SAITO Takaaki