0

Um, Is this a python error?

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.

21st Jul 2022, 2:49 PM
Marion II
Marion II - avatar
1 Answer