night_of_knee@lemmy.world to Programmer Humor@lemmy.ml · 1 year agoCan we finally put this one to rest?lemmy.worldimagemessage-square5fedilinkarrow-up119arrow-down10file-text
arrow-up119arrow-down1imageCan we finally put this one to rest?lemmy.worldnight_of_knee@lemmy.world to Programmer Humor@lemmy.ml · 1 year agomessage-square5fedilinkfile-text
minus-squareThe Quuuuuill@slrpnk.netlinkfedilinkarrow-up2·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