I am adding two numbers in python.
A = 29.000988000000003
B = 10
in python A+B
gives 39.00098800000001.
Can someone explain me what exactly is going on? According to me the last digit should be 3 not 1. Even with B = 10.0
also gives same results..
Basically I want to know what is the machine accuracy of python and how I can avoid such incidents?