I think it's also worth mentioning that there are a number of perl modules that will perform decimal arithmetic and give you the results that you expect.
The ones that I know of are Math::BigFloat (which you already have), Math::Decimal, Math::Decimal64, and Math::Decimal128.