• Log in | Sign up@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    10 hours ago

    I always thought that NaN is required by IEEE rules to never equal any other number, including itself, because you can make NaN in different ways and this shouldn’t result in equality or something, so C is wild but not javascript’s fault.

    The other three being true is definitely javascript’s insane fault, though.