imperial to metric convertion for CNC GUI