Algebraic unit converter