exp

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

Computes Euler's number e raised to the power of the value x.

Special cases:

  • exp(NaN) is NaN

  • exp(+Inf) is +Inf

  • exp(-Inf) is 0.0

Since Kotlin

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

Computes Euler's number e raised to the power of the value x.

Special cases:

  • exp(NaN) is NaN

  • exp(+Inf) is +Inf

  • exp(-Inf) is 0.0

Since Kotlin

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

Computes Euler's number e raised to the power of the value x.

Special cases:

  • exp(NaN) is NaN

  • exp(+Inf) is +Inf

  • exp(-Inf) is 0.0

Since Kotlin

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

Computes Euler's number e raised to the power of the value x.

Special cases:

  • exp(NaN) is NaN

  • exp(+Inf) is +Inf

  • exp(-Inf) is 0.0

Since Kotlin

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

Computes Euler's number e raised to the power of the value x.

Special cases:

  • exp(NaN) is NaN

  • exp(+Inf) is +Inf

  • exp(-Inf) is 0.0

Since Kotlin

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

Computes Euler's number e raised to the power of the value x.

Special cases:

  • exp(NaN) is NaN

  • exp(+Inf) is +Inf

  • exp(-Inf) is 0.0

Since Kotlin

1.8