sqrt

expect fun sqrt(x: Double): Double(source)
expect fun sqrt(x: Float): Float(source)

Computes the positive square root of the value x.

Special cases:

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

Since Kotlin

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

Computes the positive square root of the value x.

Special cases:

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

Since Kotlin

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

Computes the positive square root of the value x.

Special cases:

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

Since Kotlin

1.2
actual external fun sqrt(x: Double): Double(source)
actual external fun sqrt(x: Float): Float(source)

Computes the positive square root of the value x.

Special cases:

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

Since Kotlin

1.3
actual fun sqrt(x: Double): Double(source)
actual fun sqrt(x: Float): Float(source)

Computes the positive square root of the value x.

Special cases:

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

Since Kotlin

1.8
actual fun sqrt(x: Double): Double(source)
actual fun sqrt(x: Float): Float(source)

Computes the positive square root of the value x.

Special cases:

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

Since Kotlin

1.8