• JustAnotherKay@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    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