store/[org.clojure/clojure "1.8.0"] clj::clojure.core/rational?

Official Documentation

Add notes
Arities
==================================================
   [n]

Docstring
==================================================
  Returns true if n is a rational number

Source

(defn rational? 
  "Returns true if n is a rational number"
  {:added "1.0"
   :static true}
  [n]
  (or (integer? n) (ratio? n) (decimal? n)))

Example 1

Edit
(rational? 1)
;; => true

(rational? 1.0)
;; => false

(class 1.0)
;; => java.lang.Double

;; Note that decimal? only returns true if n is a BigDecimal.

Uses on crossclj