top | item 25611982 Ask HN: Why does print (0.1 and 0.1 and 0.1 == 0.3) evaluate to False in Python? 2 points| AlexHerbert | 5 years ago 3 comments order hn newest unknown|5 years ago [deleted] edrobap|5 years ago Explanation for this behaviour is explained here - https://docs.python.org/3/library/decimal.html asplake|5 years ago Floating point isn't the issue. 'and' is a logical operator here. 0.1 and 0.1 is 0.1. load replies (1) AlexHerbert|5 years ago Thank you
edrobap|5 years ago Explanation for this behaviour is explained here - https://docs.python.org/3/library/decimal.html asplake|5 years ago Floating point isn't the issue. 'and' is a logical operator here. 0.1 and 0.1 is 0.1. load replies (1) AlexHerbert|5 years ago Thank you
asplake|5 years ago Floating point isn't the issue. 'and' is a logical operator here. 0.1 and 0.1 is 0.1. load replies (1)
unknown|5 years ago
[deleted]
edrobap|5 years ago
asplake|5 years ago
AlexHerbert|5 years ago