As per my expectation .05+.01 should be equal to .06 but in python its not happening.
As .05+.01 = 0.060000000000000005
and that is not equal to .06
.
>>> .01+.01
0.02
>>> .02+.01
0.03
>>> .03+.01
0.04
>>> .04+.01
0.05
>>> .05+.01
0.060000000000000005 #expected .06
>>> .06+.01
0.06999999999999999 #expected .07
>>> .07+.01
0.08
>>> .08+.01
0.09
>>> .09+.01
0.09999999999999999 #expected .10
>>> 0.09999999999999999+.01
0.10999999999999999 #expected .11
what is the reason for this?