in reply to Simple algebraic calculations

are you looking for something like Math::Calc::Units?