Before you run it, try to guess the value of wat. val n = 0.0/0.0 val set = Set(n, n) val wat = (set ++ set).size
-
-
@extempore2 Yeah, I didn't manage to do it. Luckily it's not useful...1 reply 0 retweets 0 likes -
Replying to @propensive
@propensive@extempore2 scala> NaN equals NaN res1: Boolean = true scala> NaN == NaN res2: Boolean = false1 reply 1 retweet 1 like
Replying to @daverstevens
@daverstevens Yeah, and,
-0.0 == 0.0 is true
whereas
-0.0 equals 0.0 is false
/cc @extempore2
7:35 AM - 16 Apr 2014
from Poplar, London
0 replies
0 retweets
0 likes
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.