That is, if both are valid floats that represent a finite non-zero number.
Floats support both -0 and 0 they compare equal but their bit representations don't. Zero can be tricky.
Not a numbers (NaNs) always compare as false. Their bit representations won't.
That is, if both are valid floats that represent a finite non-zero number.