Q&A > math > How do I round a number? - Answer 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
Once (shame on you!)
Twice (shame on me!)
More often than I'd like to be
All the time
Just when answering stupid polls
Who you callin' a fool?
I refuse to vote in this ridiculous poll
Results (501 votes). Check out past polls.