Я смотрел исходный код openjdk-1.7.0_25
, и я видел этот метод:
/**
* Returns {@code true} if the specified number is a
* Not-a-Number (NaN) value, {@code false} otherwise.
*
* @param v the value to be tested.
* @return {@code true} if the argument is NaN;
* {@code false} otherwise.
*/
static public boolean isNaN(float v) {
return (v != v);
}
Я не могу понять, как это работает, когда этот метод может вернуть true
?