night_of_knee@lemmy.world to Programmer Humor@lemmy.ml · 1 year agoCan we finally put this one to rest?lemmy.worldimagemessage-square6fedilinkarrow-up125arrow-down11file-text
arrow-up124arrow-down1imageCan we finally put this one to rest?lemmy.worldnight_of_knee@lemmy.world to Programmer Humor@lemmy.ml · 1 year agomessage-square6fedilinkfile-text
minus-squareThe Quuuuuill@slrpnk.netlinkfedilinkarrow-up4·1 year agoif (a < b) { return true; } else if (b < a) { return false; } else { return "A == B, bro" }
if (a < b) { return true; } else if (b < a) { return false; } else { return "A == B, bro" }
That doesn’t work if either one is NaN
typed languages seeing this