Introduce the helpfer function convertUnits()
use convertUnits() to deal with different units.