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.
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.
Comments top
No comments for rational?. Log in to add a comment.