sqrt

Common
JVM
JS
Native
1.2
fun sqrt(x: Double): Double
fun sqrt(x: Float): Float

Computes the positive square root of the value x.

Special cases:

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