This might be a solution for you Math::FixedPoint
In reply to Re^3: Getting stranger values in subtraction by poj in thread Getting stranger values in subtraction by Anonymous Monk