How Python Compares Floats and Ints: When Equals Isn’t Really Equal
How Python Compares Floats and Ints: When Equals Isn’t Really Equal
blog.codingconfessions.com How Python Compares Floats and Ints: Why It Can Give Surprising Results
Another Python gotcha and an investigation into its internals to understand why this happens
![How Python Compares Floats and Ints: Why It Can Give Surprising Results](https://lemmy.world/pictrs/image/5936275d-9e37-4723-bc16-f7bcd3dc9727.jpeg?format=webp&thumbnail=256)
You're viewing a single thread.
All comments
13
comments
If i'm comparing ints with floats, it is my fault in the first place
26 0 ReplyExactly, I'd expect a warning, if not an error.
2 0 Reply
13
comments
Scroll to top