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?)
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 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?)
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?
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?
Idk either but great questions!