Why 0.1 + 0.2 Doesn't Equal 0.3 in Your Code
🔒
https://dev.to
«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...»
Automatische Weiterleitung...
1.5s