in reply to How do I round a number?
If you are using integers, and want to use Math::BigInt:
Math::BigInt - Arbitrary size integer math package
DESCRIPTION
All operators (inlcuding basic math operations) are overloaded if you declare your big integers as
$i = new Math::BigInt '123_456_789_123_456_789';
(snip)
METHODS
round
$x->round($A,$P,$round_mode); # round to accuracy or precision using + mode $r
|
---|
In Section
Seekers of Perl Wisdom