When I do this in python 3.9
4554.2/1000
I get the result 4.5542
However when I do
4554.3/1000
I get 4.5543000000000005
Why is that? How to not lose the precision for such small numbers?
When I do this in python 3.9
4554.2/1000
I get the result 4.5542
However when I do
4554.3/1000
I get 4.5543000000000005
Why is that? How to not lose the precision for such small numbers?