Added conversion to fixed precision numbers to fix bugs around rotating