print("%.2f" %(22.235))
print("%.2f" %(22.225))
>>>22.23
>>>22.23
In the code written above, I rounded 22.235 and 22.225 using '%.2f'
The result I thought was 22.24, 22.23, but both of them were 22.23.
Through Googleing, I learned that Python's rounding rules are different
If the last number is 5, the rule was to make the nearest even number.
But the code I wrote is not following it.
And even when I randomly change the numbers except 5, the rounding value changes irregularly.
I need professional help. Thank you very much.