In Perl, if speed is not a concern, you can just add -Mbignum.
In reply to Re: floating point addition by choroba in thread floating point addition by kresike