exp

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

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