Type this into your Python console right now:



print(0.1 + 0.2)






You expect to see 0.3. Instead, you get 0.30000000000000004.

Your calculator says 0.3. Excel says 0.3. Your brain says 0.3. But your code disagrees. And this isn't a Python bug—every programming language does this. JavaScript, Java, C++, Ruby, Go—they all betray basic...