如果数字为浮点数,则返回true。
float? - 语法
以下是语法。
(float? number)
float? - 示例
以下是浮动测试函数的示例。
(ns clojure.examples.hello (:gen-class)) ;; This program displays Hello Learnfk (defn Example [] (def x (float? 0)) (println x) (def x (float? 0.0)) (println x)) (Example)
上面的程序产生以下输出。
false true