Back to Browse

Why Python Makes This "Mistake"?

94 views
Oct 25, 2025
3:57

Mathematically, 0.1 + 0.2 is obviously 0.3. But if you type 0.1 + 0.2 == 0.3 in the Python interpreter, it'll tell you False. So why does Python "get it wrong"? Or is it even really a mistake? Let's take a look. Key points: floating-point precision, computer storage, binary conversion.

Download

1 formats

Video Formats

360pmp45.3 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Why Python Makes This "Mistake"? | NatokHD