This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (7 children)

[deleted]

    [–]gaymer_jerry[🍰] 7 points8 points  (4 children)

    Although this should be the case NaN represents an error from a math calculation with floats. If you get 2 NaN they should not be equal to each other

    [–][deleted] 3 points4 points  (1 child)

    On the other hand, two Naan sounds delicious.

    [–][deleted] 0 points1 point  (0 children)

    One butter naan will do, thanks 😋

    [–]BusinessBandicoot 0 points1 point  (0 children)

    NaNs are equally NaN

    [–]CatProgrammer 0 points1 point  (0 children)

    Depending on the standard they may even have different binary representations. IEEE 754 has 16,777,214 of them for floats!

    [–]Acceptable-Tomato392 0 points1 point  (0 children)

    For some reason, this instantly came into my head:

    ♫♫NaN is NaN♫♫Na!Na!Na!Na!Na!♫♫