This is with Clojure 1.1.0: user=> (< Float/NaN 1.0) false user=> (<= Float/NaN 1.0) true
Both comparisons should yield false. It seems that (<= x y) is implemented by negating the result of (< y x), which is fine for totally-ordered sets, but unfortunately IEEE 754 floating-point numbers do not form such a set. (See e.g. Java Language Specification §15.20.1). -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en To unsubscribe, reply using "remove me" as the subject.