parse compass to float, then to int