When I went on to code some python, I typed in print(0.1+0.2) and its answer? 0.30000000000000004 That isn't correct. Then I tried print(0.1+0.2==0.3) and it output "False" Why does this happen? Its suppose to output True.
Learn more efficiently, for free:
Introduction to Python
7.1M learners
Introduction to Java
4.7M learners
Introduction to C
1.5M learners
Introduction to HTML
7.5M learners