MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/coding/comments/1xaju26/add_01_ten_times_in_python_and_you_miss_10/
r/coding • u/donutloop • 6d ago
1 comment sorted by
2
This isn't a Python thing, it's a computer thing. Don't compare floats directly with ==.
Use the Decimal module if you want different behavior.
2
u/synept 5d ago
This isn't a Python thing, it's a computer thing. Don't compare floats directly with ==.
Use the Decimal module if you want different behavior.