Greetings, I think that I've encountered a bug in ==.
user=> (and (== 1 1.0) (== 1.0 1.0M) (not (== 1 1.0M))) true This happens with 1.2.1 and 1.3-beta2. I think it has to do with the precision of the BigDecimal. user=> (== 1 1.0M) false user=> (== 1 1M) true I think a solution would be to use BigDecimal#compareTo (or maybe BigDecimal#stripTrailingZeros) in ==, so that (== 1M 1.0M) becomes true. (I would expect (= 1M 1.0M) to remain false, though.) Thanks, - Pat -- 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