dx = .1; x = 0; for (i = 0; i < 100; i++) { x += dx; } if (x == 10) { trace ("current"); } else { trace ("error :" + (10 - x)); }