Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Adding really big numbersby salva (Canon) |
on Feb 23, 2013 at 09:33 UTC ( [id://1020291]=note: print w/replies, xml ) | Need Help?? |
If you need to do that application wide, you can compile a custom perl that uses long doubles to represent floating point numbers.
x86 long doubles have 80 bits and a resolution of 18 digits. Other architectures as SPARC use 128 bits for long doubles. Otherwise, you can use Math::LongDouble or Math::MPFR
In Section
Seekers of Perl Wisdom
|
|