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