kotlin-stdlib / kotlin.math / sqrt sqrt Common JVM JS Native 1.2 fun sqrt(x: Double): Double(Common source) (JVM source) (JS source) (Native source) fun sqrt(x: Float): Float(Common source) (JVM source) (JS source) (Native source) Computes the positive square root of the value x. Special cases: sqrt(x) is NaN when x < 0 or x is NaN