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

You're viewing a single thread.
All Comments
43 comments
Siegfried @lemmy.world If i'm comparing ints with floats, it is my fault in the first place
26 0 Replywarrenson @lemmy.world Exactly, I'd expect a warning, if not an error.
2 0 Reply
43 comments
Scroll to top