@[email protected] to Programmer [email protected] • 1 month agoWhich of these javascript expressions is false?lemmy.mlimagemessage-square83fedilinkarrow-up1499cross-posted to: [email protected]
arrow-up1499imageWhich of these javascript expressions is false?lemmy.ml@[email protected] to Programmer [email protected] • 1 month agomessage-square83fedilinkcross-posted to: [email protected]
minus-square@[email protected]cakelinkfedilink1•1 month agoA non type should be a type. It should be of the type none. And it is in good script languages like Python so I don’t know why you think it shouldn’t.
minus-square@[email protected]cakelinkfedilink1•1 month agoThat’s a Numpy type, not a Python typesm, try a=None b=None a==b
minus-square@[email protected]linkfedilink1•edit-21 month agoThat’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.
A non type should be a type. It should be of the type none. And it is in good script languages like Python so I don’t know why you think it shouldn’t.
They say a picture is worth a thousand words.
That’s a Numpy type, not a Python typesm, try a=None b=None a==b
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.