math.exp() function

The math.exp() function returns e**x, the base-e exponential of x.

*Output data type: Float*

  1. import "math"
  2. math.exp(x: 21.0)
  3. // Returns 1.3188157344832146e+09

Parameters

x

The value used in the operation.

*Data type: Float*

Special cases

  1. math.exp(x: +Inf) // Returns +Inf
  2. math.exp(x: NaN) // Returns NaN

Very large values overflow to 0 or +Inf. Very small values underflow to 1.