When in python3 I add 0.1 to 0.1, I get 0.2. But when I add 0.2 to 0.1 I get 0.30000000000000004. What is the problem? How it works?
>>> 0.1+0.1
0.2
>>> 0.1+0.2
0.30000000000000004
>>>
When in python3 I add 0.1 to 0.1, I get 0.2. But when I add 0.2 to 0.1 I get 0.30000000000000004. What is the problem? How it works?
>>> 0.1+0.1
0.2
>>> 0.1+0.2
0.30000000000000004
>>>