SirAnthony 21.03.2011 13:46 Home

if( dx && dx < 0.01 && dx > -0.01 ) dx = 0.01 * ( dx / abs(dx) );

1. werehuman 21.03.2011 13:51

inline int sign(double a) {
return a == 0 ? 0 : (a > 0 ? 1 : -1);
}

...
if (dx && abs(dx) < 0.01) dx = 0.01 * sign(dx);

2. SirAnthonywerehuman /1 21.03.2011 13:57 Home

Я уже так и сделал.

Do you really want to delete ?