ClojureDocs

导航

命名空间

signum

clojure.math

自 1.11 以来可用
  • (signum d)
Returns the signum function of d - zero for zero, 1.0 if >0, -1.0 if <0.
If d is ##NaN => ##NaN
See: https://docs.oracle.com/javase/8/docs/api/java/lang/Math.html#signum-double-