double

clojure.core

  • (double x)
Coerce to double

1 Example top

  • user=> (double 1)
    1.0
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:3078 top

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

Comments top

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