ClojureDocs

Nav

Namespaces

sqrt

clojure.math

Available since 1.11
  • (sqrt a)
Returns the positive square root of a.
If a is ##NaN or negative => ##NaN
If a is ##Inf => ##Inf
If a is zero => a
See: https://docs.oracle.com/javase/8/docs/api/java/lang/Math.html#sqrt-double-