you are viewing a single comment's thread
view the rest of the comments
[–] 6 points 1 day ago (2 children)

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

  • source
  • parent
  • hideshow 2 child comments
  • [–] 4 points 1 day ago (1 child)
  • [–] 2 points 1 day ago

    Do humans have data types? I’m not a number, but I’m also not a NaN because I’m definitely not a floating point.

    I think I’m an instance of an object, rather than a variable. I suppose in that way, if I’m to be evaluated, I would be evaluated as my output. Is my output a number? Potentially, but I strive to output other things too. Perhaps I output a dictionary or a list?

  • source
  • parent