In rt.jar NaN is defined as follows:
A constant holding the largest positive finite value of type
double,It is equal to the hexadecimal floating-point literal
0x1.fffffffffffffP+1023 and also equal to
What is this mean??
Xiao Song posted November 20, 2006 01:39 AM
when you perform arithmetic operation on NaN the result will also be not a number.
Hello,everyone, Why the result is false??
So NaN - NaN = NaN
and NaN is not zero.
Furthermor NaN is unuequal to everything, including itself (this may give you some headaches if you think about it).