In interactions pane, NaNs are compared incorrectly.
double d = Double.NaN;
d == d
d == Double.NaN
both return true, which is incorrect.
According to IEEE 754, all comparisons with a NaN must return false.
In non-interactive mode, the result of e.g.
is correct, i.e. false.
DrJava Version : drjava-20090821-r5004 on WIn XP, Java build 1.6.0_16-b01
Log in to post a comment.