a = 0.1
b = 0.2
print(a+b)
print(a+b,a+b)
I expected 0.3 or 0.30000000004 to be output equally:
0.3
0.3,0.3
But the output is different.:
0.3
(0.30000000000000004, 0.30000000000000004)
I'm wondering why the output of one is different from the output of two. My Python version is 2.7 and pyscripter is 3.3.