Nov-23-2019, 08:25 PM
Hello,
The problem as it seems is when you use the int() function on the expression: "10 * round(after_point, 1)".
Executing the two first step of your loop, the value of "after_point" variable are so close: 0.90000 for step 1 and 0.88999 for step 2. When rounding, it will give the same value in the either cases (0.9).
The problem as it seems is when you use the int() function on the expression: "10 * round(after_point, 1)".
Executing the two first step of your loop, the value of "after_point" variable are so close: 0.90000 for step 1 and 0.88999 for step 2. When rounding, it will give the same value in the either cases (0.9).