@propensive NaN, the gift that keeps on giving.
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@d6 Yes. How did you work it out? ;) Looks like a subtlety in comparisons sometimes being done boxed, other times unboxed... - Show replies
New conversation -
-
@propensive isn’t it 4 since NaN != NaN? -
@dridus You might have thought so, but no. It's also not 1, despite the fact NaN.equals(NaN)... - Show replies
New conversation -
-
-
@extempore2 Yeah, I didn't manage to do it. Luckily it's not useful... -
@propensive@extempore2 scala> NaN equals NaN res1: Boolean = true scala> NaN == NaN res2: Boolean = false - Show replies
New conversation -
-
-
@extempore2 From Double.java static public boolean isNaN(double v) { return (v != v); }Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@extempore2 Right, I was confused by something. Nevermind.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.