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