ClojureDocs

导航

命名空间

copy-sign

clojure.math

自 1.11 起提供
  • (copy-sign magnitude sign)
Returns a double with the magnitude of the first argument and the sign of
the second.
See: https://docs.oracle.com/javase/8/docs/api/java/lang/Math.html#copySign-double-double-