float?

clojure.core

  • (float? n)
Returns true if n is a floating point number

1 Example top

  • user=> (float? 0)
    false
    user=> (float? 0.0)
    true
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:3197 top

(defn float?
  "Returns true if n is a floating point number"
  {:added "1.0"
   :static true}
  [n]
  (or (instance? Double n)
      (instance? Float n)))
Vars in clojure.core/float?:
Used in 0 other vars

Comments top

No comments for float?. Log in to add a comment.