abhi9u@lemmy.world to Technology@lemmy.worldEnglish · 4 months agoHow Python Compares Floats and Ints: When Equals Isn’t Really Equalblog.codingconfessions.comexternal-linkmessage-square43fedilinkarrow-up1142arrow-down19cross-posted to: programming@zerobytes.monster
arrow-up1133arrow-down1external-linkHow Python Compares Floats and Ints: When Equals Isn’t Really Equalblog.codingconfessions.comabhi9u@lemmy.world to Technology@lemmy.worldEnglish · 4 months agomessage-square43fedilinkcross-posted to: programming@zerobytes.monster
minus-squareMiaou@jlai.lulinkfedilinkEnglisharrow-up1·edit-24 months agoRust has a warning (has it been promoted to error? I think it was supposed to be) about comparing floats. Nothing to do with same being const. You basically don’t have an equality operator for them
Rust has a warning (has it been promoted to error? I think it was supposed to be) about comparing floats. Nothing to do with same being const. You basically don’t have an equality operator for them