1.2.0 permalink Arrow_down_16x16
  • (sgn x)
Return the sign of x (-1, 0, or 1).

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/generic/math_functions.clj:73 top

(defmulti sgn
  "Return the sign of x (-1, 0, or 1)."
  {:arglists '([x])}
  type)
Vars in clojure.contrib.generic.math-functions/sgn: defmulti type
Used in 0 other vars

Comments top

No comments for sgn. Log in to add a comment.