;; note that the function always returns the numerator of the reduced fraction user=> (map numerator [(/ 2 4) (/ 4 6) (/ 6 8)]) (1 2 3)
Returns the denominator part of a Ratio.
(defn numerator "Returns the numerator part of a Ratio." {:tag BigInteger :added "1.2"} [r] (.numerator ^clojure.lang.Ratio r))
Comments top
No comments for numerator. Log in to add a comment.