I'm relatively new to Python, and reading through a tutorial page on the documentation website, I came across this snippet:
This made me curious, so I decided to type it into a Python file and test it out. When I did this, however, it gave me a different result:
.1+.1+.1 == .3
=> True
This question may seem trivial, but I'm curious why the actual behavior did not match what the Python documentation said it would do. Any answers?
This behavior occured while using an online interpreter. Running it locally returned False.