I am having a problem with Python's precision when subtracting.
For example if I wanted python to do 0.1234-.01
it would sometimes return 0.1134000000005
.
Why does this happen and how can I stop it?
I am having a problem with Python's precision when subtracting.
For example if I wanted python to do 0.1234-.01
it would sometimes return 0.1134000000005
.
Why does this happen and how can I stop it?