docs-v2/content/influxdb/cloud/reference/flux/stdlib/math/exp.md

693 B

title description aliases menu weight
math.exp() function The math.exp() function returns `e**x`, the base-e exponential of `x`.
/influxdb/cloud/reference/flux/functions/math/exp/
influxdb_cloud_ref
name parent
math.exp Math
301

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

Parameters

x

The value used in the operation.

Data type: Float

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.