sqrt

inline actual fun sqrt(x: Double): Double (source)

Platform and version requirements: Kotlin 1.2

inline actual fun sqrt(x: Float): Float (source)

Platform and version requirements: Kotlin 1.2

Computes the positive square root of the value x.

Special cases:

  • sqrt(x) is NaN when x < 0 or x is NaN