0, 0 i, , , .
, , 0.0001. , i - , double int, 0.0001 → 0. , 1 0 , 0.
i double, .
step int,
, :
(int) (500 * 0.0001) -> 0.05 as an integer = 0
Therefore, when you add a double step with a decimal value (exclusively a decimal value) to an integer, the step becomes 0, is 0added to iand becomes infinite.
source
share