in reply to
adding numbers and floating point errors
You might try
Math::FixedPrecision
if this is for a real application.
Comment on
Re: adding numbers and floating point errors
In Section
Seekers of Perl Wisdom