如果数字为浮点数,则返回true。
以下是语法。
链接:https://www.learnfk.comhttps://www.learnfk.com/clojure/clojure-float.html
来源:LearnFk无涯教程网
(float? number)
以下是浮动测试函数的示例。
(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
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)