Don't use floating point, use integers, but work in units of 1mm (or tenths of a mm if you need to work to two decimals of a cm)
Don't use floating point, use integers, but work in units of 1mm (or tenths of a mm if you need to work to two decimals of a cm)