@abhi9u to [email protected]English • 6 months agoHow Python Compares Floats and Ints: When Equals Isn’t Really Equalblog.codingconfessions.comexternal-linkmessage-square1arrow-up14arrow-down10cross-posted to: technology
arrow-up14arrow-down1external-linkHow Python Compares Floats and Ints: When Equals Isn’t Really Equalblog.codingconfessions.com@abhi9u to [email protected]English • 6 months agomessage-square1cross-posted to: technology
minus-square@bahbah23link3•6 months agoNice breakdown of floating point math, but it shouldn’t be surprising that floating point equality doesn’t “work” in Python, because floating point numbers shouldn’t be tested for equality in any computer language.
Nice breakdown of floating point math, but it shouldn’t be surprising that floating point equality doesn’t “work” in Python, because floating point numbers shouldn’t be tested for equality in any computer language.