in reply to Re^2: Perl 5.8.x floating point representation error
in thread Perl 5.8.x floating point representation error
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
|
|---|