Mathematically speaking why it happens and how to correct the following "error" in python:
>>>10.53 % 1
0.5299999999999994
I'd like to understand how python
works to get this value, why this occurs.
In fact the duplicate possible formats the output via the command print
.
But I would like to work without print
...