• (num x)
Coerce to Number

1 Example top

  • user=> (num 2048)
    ;; Calling a Number http://download.oracle.com/javase/6/docs/api/ method:
    user=> (def x (num 2048))
    user=> (.floatValue x)
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:3059 top

(defn num
  "Coerce to Number"
  {:tag Number
   :inline (fn  [x] `(. clojure.lang.Numbers (num ~x)))
   :added "1.0"}
  [x] (. clojure.lang.Numbers (num x)))
Vars in clojure.core/num:
Used in 0 other vars

Comments top

No comments for num. Log in to add a comment.