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

Official Documentation

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

Docstring
==================================================
  Coerce to long

Source

(defn long
  "Coerce to long"
  {:inline (fn  [x] `(. clojure.lang.RT (longCast ~x)))
   :added "1.0"}
  [^Number x] (clojure.lang.RT/longCast x))

Example 1

Edit
;; On Clojure v.1.3.0
(let [num (* 1234567890 21)] [num (int num) (long num)])
;; => [25925925690 156121914 25925925690]

;; On Clojure v.1.6.0 or later
(let [num (* 1234567890 21)] [num (int num) (long num)])
;; > IllegalArgumentException Value out of range for int: 25925925690

Uses on crossclj