Skip to content

float-is-positive

Type ​

meta-lisp
(-> float-t bool-t)

Description ​

Check if a float is positive (greater than 0.0).

Examples ​

meta-lisp
(float-is-positive 1.0)    ;; => true
(float-is-positive 0.0)    ;; => false
(float-is-positive -1.0)   ;; => false