Try it this way (notice the quotes):
use Math::BigFloat; Math::BigFloat->accuracy(32); Math::BigFloat->precision(-32); $test = Math::BigFloat->new('0.99999999976716932'); print $test; 0.99999999976716932000000000000000
In reply to Re^3: Perl 5.8.x floating point representation error
by BrowserUk
in thread Perl 5.8.x floating point representation error
by satish.rpr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |