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

Official Documentation

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

Docstring
==================================================
  Coerce to Number

Source

(defn num
  "Coerce to Number"
  {:tag Number
   :inline (fn  [x] `(. clojure.lang.Numbers (num ~x)))
   :added "1.0"}
  [x] (. clojure.lang.Numbers (num x)))

Example 1

Edit
(num 2048)
;; => 2048

;; Calling a Number http://download.oracle.com/javase/6/docs/api/ method:
(def x (num 2048))
;; => #'user/x

(.floatValue x)
;; => 2048.0

Uses on crossclj