• Pudutr0n@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      10 hours ago

      NaN is represented by a number, sure, and I could be wrong but I’d argue the concept of NaN is not a number in itself. idk tho. What do you think? (don’t lie… and you wouldn’t happen to be a number, would you?)

      • JustAnotherKay@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        5 hours ago

        NaN is a number because only a number would need to be specified as Not a Number. A character is intrinsically not a number because it is already a character, as is true for other data types.

        The only data type that could potentially be required to specify that it is not, in fact, a number, is a variable in which a number is expected but not found. NaN is the representation of this structure, and is therefore a number

      • marcos@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        10 hours ago

        What do you think?

        I can only get up to “what’s a number, dude?” and get stuck there, unable to answer…

        Are the identity operators preserved for NaN because, for example NaN + 1 = NaN? Or are they broke because that’s not equal to NaN?

  • Pudutr0n@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    10 hours ago

    It’s November and this is the best meme I’ve seen all year. Take all my upvotes. All of them. They’re yours.