exp

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

Platform and version requirements: Kotlin 1.2

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

Platform and version requirements: Kotlin 1.2

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