Open cgore opened 8 years ago
The double generator should intentionally return the weird doubles with some regularity, they are bug magnets.
http://docs.oracle.com/javase/7/docs/api/java/lang/Double.html
MAX_EXPONENT
MAX_VALUE
MIN_EXPONENT
MIN_NORMAL
MIN_VALUE
NaN
NEGATIVE_INFINITY
POSITIVE_INFINITY
Ick.
(= Double/NaN Double/NaN) ;; => false
Via @arcdrag:
(<= 0 Double/NaN 10) ;; => true (<= 0 Double/NaN) ;; => false (<= Double/NaN 10) ;; => false
Fixed in Clojure 1.7.
The double generator should intentionally return the weird doubles with some regularity, they are bug magnets.
http://docs.oracle.com/javase/7/docs/api/java/lang/Double.html
MAX_EXPONENT
MAX_VALUE
MIN_EXPONENT
MIN_NORMAL
MIN_VALUE
NaN
NEGATIVE_INFINITY
POSITIVE_INFINITY