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
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?
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
Are you a number?
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?