▲ 499 ▼ Which of these javascript expressions is false? (lemmy.ml) submitted 1 year ago by cm0002@lemmy.world to c/programmer_humor@programming.dev 81 comments fedilink hide all child comments
[–] Remavas@programming.dev 1 point 1 year ago (1 child) They say a picture is worth a thousand words. permalink fedilink source parent hideshow 2 child comments replies: [–] Valmond@lemmy.world 1 point 1 year ago (1 child) That's a Numpy type, not a Python typesm, try a=None b=None a==b permalink fedilink source parent hideshow 2 child comments replies: [–] Remavas@programming.dev 1 point 1 year ago* That's not a type. A NaN is a floating point number (of type float). I used numpy because that's the easiest way to get a NaN. This is part of the floating point standard. This was never about None, which is a completely different thing. permalink fedilink source parent
[–] Valmond@lemmy.world 1 point 1 year ago (1 child) That's a Numpy type, not a Python typesm, try a=None b=None a==b permalink fedilink source parent hideshow 2 child comments replies: [–] Remavas@programming.dev 1 point 1 year ago* That's not a type. A NaN is a floating point number (of type float). I used numpy because that's the easiest way to get a NaN. This is part of the floating point standard. This was never about None, which is a completely different thing. permalink fedilink source parent
[–] Remavas@programming.dev 1 point 1 year ago* That's not a type. A NaN is a floating point number (of type float). I used numpy because that's the easiest way to get a NaN. This is part of the floating point standard. This was never about None, which is a completely different thing. permalink fedilink source parent