1m > 1.inch
simplify code
refactor
use look-up table to get unit-to-meter ratio