abhi9u@lemmy.world to Technology@lemmy.worldEnglish · 5 months agoHow Python Compares Floats and Ints: When Equals Isn’t Really Equalblog.codingconfessions.comexternal-linkmessage-square43fedilinkarrow-up1142arrow-down19
arrow-up1133arrow-down1external-linkHow Python Compares Floats and Ints: When Equals Isn’t Really Equalblog.codingconfessions.comabhi9u@lemmy.world to Technology@lemmy.worldEnglish · 5 months agomessage-square43fedilink
minus-squareSiegfried@lemmy.worldlinkfedilinkEnglisharrow-up26·5 months agoIf i’m comparing ints with floats, it is my fault in the first place
minus-squarewarrenson@lemmy.worldlinkfedilinkEnglisharrow-up2·5 months agoExactly, I’d expect a warning, if not an error.
If i’m comparing ints with floats, it is my fault in the first place
Exactly, I’d expect a warning, if not an error.