io@piefed.blahaj.zone to Programmer Humor@programming.devEnglish · 10 hours agoNaN Postingpiefed.cdn.blahaj.zoneimagemessage-square9fedilinkarrow-up1301arrow-down12file-text
arrow-up1299arrow-down1imageNaN Postingpiefed.cdn.blahaj.zoneio@piefed.blahaj.zone to Programmer Humor@programming.devEnglish · 10 hours agomessage-square9fedilinkfile-text
minus-squareArbitraryValue@sh.itjust.workslinkfedilinkEnglisharrow-up46·edit-28 hours agoThings that are numbers: a memory address the letter B an error encountered when trying to open a file the concept of being false, as opposed to being true Things that are not numbers: this particular floating-point number
minus-squaremarcos@lemmy.worldlinkfedilinkarrow-up2·edit-23 hours ago>> typeof(NaN) <- "number" It’s valid for C too, but it will be either a double or a float.
minus-squareArghblarg@lemmy.calinkfedilinkarrow-up6arrow-down1·8 hours ago Things that are numbers … the concept of being false, as opposed to being true ? If your’re referring to the C language convention that anything nonzero is ‘true’… false itself is exactly zero. Zero is a number. Perhaps I miss something here?
minus-squareArbitraryValue@sh.itjust.workslinkfedilinkEnglisharrow-up18·8 hours agoThat’s what I’m saying.
minus-squareArghblarg@lemmy.calinkfedilinkarrow-up4·8 hours agoAh. OK. I re-read your comment :) Silly me.
Things that are numbers:
Things that are not numbers:
numberIt’s valid for C too, but it will be either a double or a float.
…
? If your’re referring to the C language convention that anything nonzero is ‘true’… false itself is exactly zero. Zero is a number. Perhaps I miss something here?
That’s what I’m saying.
Ah. OK. I re-read your comment :) Silly me.