night_of_knee@lemmy.world to Programmer Humor@lemmy.ml · 1 year agoCan we finally put this one to rest?lemmy.worldimagemessage-square5fedilinkarrow-up118arrow-down10file-text
arrow-up118arrow-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-up1·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