Produce correct unit (m,m^2 or m^3) depending calculated values.