math.exp() function

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

Output data type: Float

import "math"

math.exp(x: 21.0)

// Returns 1.3188157344832146e+09



The value used in the operation.

Special cases

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

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

Was this page helpful?

Thank you for your feedback!

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.