Physical quantity and units of measure conversion and math for Ruby