The way you put it now makes your irritation more understandable. But this is still something you'd find in a standard textbook covering floting point arithmetics. The way to solve the above problem would be to eliminate the series of additions dTime += dT;
and instead have a loop variable that you multiply with dT: for (i=0; i<iterations; i++) dTime = i*dT;
G
Goran Roseen
@Goran Roseen
Posts
-
I hate floating point operations