私は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
か?