Stepper motor off sync

Couldn't I achieve that by rounding instead of using using int?

I'll have to try this stuff tomorrow