abhi9u@lemmy.world to Technology@lemmy.worldEnglish · 2 months agoHow Python Compares Floats and Ints: When Equals Isn’t Really Equalblog.codingconfessions.comexternal-linkmessage-square43fedilinkarrow-up1143arrow-down18
arrow-up1135arrow-down1external-linkHow Python Compares Floats and Ints: When Equals Isn’t Really Equalblog.codingconfessions.comabhi9u@lemmy.world to Technology@lemmy.worldEnglish · 2 months agomessage-square43fedilink
minus-squaremuntedcrocodile@lemm.eelinkfedilinkEnglisharrow-up5·2 months agoI mean honestly its expected u should check floats similarity not equivalence.
minus-squareSylvartas@lemmy.worldlinkfedilinkEnglisharrow-up5arrow-down1·2 months agoAgreed. But the less experienced programmers I know are surprisingly naive about this.
minus-squaremuntedcrocodile@lemm.eelinkfedilinkEnglisharrow-up3·2 months agoYeah its gonna be one of those problems chatgpt ain’t gonna help
I mean honestly its expected u should check floats similarity not equivalence.
Agreed. But the less experienced programmers I know are surprisingly naive about this.
Yeah its gonna be one of those problems chatgpt ain’t gonna help