I posted
here about what we do. It gives us maximum speed (something dividing doesn't) and reduces sensitivity at low speeds. If you are using RobotC or EasyC, I don't know how you would implement it, but I assume that it is possible (I mean, if those tools don't allow working with arrays, I would be very disappointed).