And as Alex Lohr points out this is very important in mathematics because
var a = 6 + 9;
var b = average() - 3;
if(a < b)...
If average() is NAN, b is NAN, the condition is false. Now that does not mean an else clause can assume a >= b because that is also false. But this ensures we don't try average() == mean() and go down a path where clearly we don't know.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
It is because the floating point standard requires it en.m.wikipedia.org/wiki/IEEE_754
And as Alex Lohr points out this is very important in mathematics because
If average() is NAN,
bis NAN, the condition is false. Now that does not mean an else clause can assumea >= bbecause that is also false. But this ensures we don't tryaverage() == mean()and go down a path where clearly we don't know.