Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Arithmetic on numbers bigger than 1<<31by flyingmoose (Priest) |
on May 13, 2004 at 19:27 UTC ( [id://353187]=note: print w/replies, xml ) | Need Help?? |
It can "do math" on it, presumably because the value just overflows... I doubt the value is correct.
Use should consider using BigInt/BigFloat for very large numbers, as if you get too many significant digits normal floating point math is going to lose accuracy...but of course there is a speed tradeoff.
In Section
Seekers of Perl Wisdom
|
|