1 2 3 4 5 6 7 8
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.