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

Official Documentation

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

Docstring
==================================================
  Coerce to float

Source

(defn float
  "Coerce to float"
  {:inline (fn  [x] `(. clojure.lang.RT (~(if *unchecked-math* 'uncheckedFloatCast 'floatCast) ~x)))
   :added "1.0"}
  [^Number x] (clojure.lang.RT/floatCast x))

Example 1

Edit
(float 1)
;; => 1.0

Uses on crossclj