Changes for clojure.core/rational?

zkim on Sun, 26 Sep 2010
user=> (rational? 1)
true
user=> (rational? 1.0)
false
user=> (class 1.0)
java.lang.Double

;; Note that decimal? only returns true if n is a BigDecimal.
dpritchett on Tue, 13 Jul 2010
user=> (rational? 1)
true
user=> (rational? 1.0)
false
user=> (class 1.0)
java.lang.Double

Note that decimal? only returns true if n is a BigDecimal.
dpritchett on Tue, 13 Jul 2010
user=> (rational? 1)
true
user=> (rational? 1.0)
false
user=> (class 1.0)
java.lang.Double

Note that decimal? only returns true if n is a BigDecimal.
dpritchett on Tue, 13 Jul 2010
user=> (rational? 1)
true
user=> (rational? 1.0)
false
Note that decimal? only returns true if n is a BigDecimal.
dpritchett on Tue, 13 Jul 2010
user=> (ratio? 22/7)
true
user=> (ratio? 22)
false