Q&A > math > How do I round a number? contributed by Mago
Math::BigInt - Arbitrary size integer math package
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';
$x->round($A,$P,$round_mode); # round to accuracy or precision using
+ mode $r
By rote learning.
Via Genetic memory.
It's provided by my firmware.
I just remember them.
Thirty days hath September
My computer gets it right, usually.
I just ask someone else.
Someone punches me on the first of the month.
Results (60 votes),