You're viewing version 1.2.0 of double. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16

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:2683 top

(defn double
  "Coerce to double"
  {:tag Double
   :inline (fn  [x] `(. clojure.lang.RT (doubleCast ~x)))
   :added "1.0"}
  [^Number x] (clojure.lang.RT/doubleCast x))
Vars in clojure.core/double: defn
Used in 4 other vars time aset-double bigdec choose

Comments top

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