Perl-Sensitive Sunglasses | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
As your code stands now, your variables are handled solely by perl's own internal representation, and aren't converted into bigints until the very last minute, after the exponentation and multiplication. At that point it is too late to preserve the extra tens of digits that you want, because they aren't there to be preserved.
Convert your $out, $driver, and $grade variables to bigints before you do any exponentation and multiplying. By the way, don't you mean to use Math::BigFloat instead? John In reply to Re^3: Misunderstanding with Math::BigInt
by jgamble
|
|