Think about Loose Coupling | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
thank you Dave,
But using Math::BigFloat either did not solve my issue. BigFloat truncates after 16 digits in the exponential part and then adds zeros. Any workaround for this ? use Math::BigFloat; Math::BigFloat->accuracy(32); Math::BigFloat->precision(-32); $test = Math::BigFloat->new(0.99999999976716932); print $test; output: 0.99999999976716900000000000000000 but i need 0.99999999976716932 In reply to Re^2: Perl 5.8.x floating point representation error
by satish.rpr
|
|