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

Official Documentation

Add notes
Arities
==================================================
   [x]

Docstring
==================================================
  Coerce to BigInteger

Source

(defn biginteger
  "Coerce to BigInteger"
  {:tag BigInteger
   :added "1.0"
   :static true}
  [x] (cond
       (instance? BigInteger x) x
       (instance? clojure.lang.BigInt x) (.toBigInteger ^clojure.lang.BigInt x)
       (decimal? x) (.toBigInteger ^BigDecimal x)
       (float? x) (.toBigInteger (. BigDecimal valueOf (double x)))
       (ratio? x) (.bigIntegerValue ^clojure.lang.Ratio x)
       (number? x) (BigInteger/valueOf (long x))
       :else (BigInteger. x)))

Example 1

Edit
(def x (biginteger 19931029))
;; => #'user/x

(class x)
;; => java.math.BigInteger


Uses on crossclj