in reply to Math::BigFloat Rounding
See the comments following the fround member descriptions in the Math::BigFloat docs.
use Math::BigFloat; my $num = Math::BigFloat->new (0.006185625); print "Before: $num\n"; $num->fround (6, 'odd'); print "After: $num\n";
Prints:
Before: 0.006185625 After: 0.00618563
|
|---|