Bugs item #2885861, was opened at 2009-10-25 12:10
Message generated for change (Tracker Item Submitted) made by gerdbohlender
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=2885861&group_id=44253
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Interactions
Group: 1: Would be nice if fixed ...
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Gerd Bohlender (gerdbohlender)
Assigned to: Nobody/Anonymous (nobody)
Summary: Comparison of NaNs
Initial Comment:
In interactions pane, NaNs are compared incorrectly.
Example:
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.
System.out.println (d==d);
is correct, i.e. false.
DrJava Version : drjava-20090821-r5004 on WIn XP, Java build 1.6.0_16-b01
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=2885861&group_id=44253
|