Hacker News new | ask | show | jobs
by edrobap 1996 days ago
Explanation for this behaviour is explained here - https://docs.python.org/3/library/decimal.html
2 comments

Floating point isn't the issue. 'and' is a logical operator here. 0.1 and 0.1 is 0.1.
Thank you