Oh, and to clarify a little: it is expensive to constantly convert to/from integers and reals, but doing your calculations in floats and only converting some of 'em once will not be a problem at all, so don't worry about that aspect. Also, it's unlikely that the number of conversions (a few hundred max, I'd guess) will be sufficient to be a problem.