Run if (or similar) statement once

Okay, then, with integer math - for example, 10/15 would not equal 0.6667, but 0?

So actually, with massively fast inputs, this code would actually work? But only if the denominator is less than 30.

Would using floats solve this problem, as opposed to integers (haven't got my board or anything with me right now)? As I would have decimal places.

The reasoning left dpm seperate, is I am using it later on in more code to calculate instantaneous position, rpm simply wouldn't be accurate enough.