You're viewing version 1.2.0 of zero?. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16

zero?

clojure.core

  • (zero? x)
Returns true if num is zero, else false

1 Example top

  • user=> (zero? 0)
    true
    user=> (zero? 0.0)
    true
    user=> (zero? 1)
    false
    user=> (zero? 0x0)
    true
    user=> (zero? 3.14159265358M)
    false
    user=> (zero? (/ 1 2))
    false
Log in to add / edit an example.

See Also top

Log in to add a see also.

Comments top

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