You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@paulp said:
Double.NaN == Double.NaN is supposed to be false. (It's false in java too.) There is a problem with NaN, but you're not illustrating it here, and I don't think we can fix it anyway. That is that java decided to make the boxed NaNs return true on equals while keeping the primitive == false. Since we unified those worlds we can't satisfy both. See #2598.
If you really want to find NaN you need to look for it differently.
Actual: -1, Expected: 0
Scala version 2.8.0.r21376-b20100408020204 (Java HotSpot(TM) Client VM, Java 1.6.0_18).
The text was updated successfully, but these errors were encountered: