Settings

Theme

Ask HN: Why does print (0.1 and 0.1 and 0.1 == 0.3) evaluate to False in Python?

2 points by AlexHerbert 5 years ago · 5 comments

Reader

edrobap 5 years ago

Explanation for this behaviour is explained here - https://docs.python.org/3/library/decimal.html

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection