math.exp2() function
The math.exp2()
function returns 2**x
, the base-2 exponential of x
.
Output data type: Float
import "math"
math.exp2(x: 21.0)
// Returns 2.097152e+06
Parameters
x
The value used in the operation.
Special cases
math.exp2(x: +Inf) // Returns +Inf
math.exp2(x: NaN) // Returns NaN
Very large values overflow to 0 or +Inf. Very small values underflow to 1.
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, the following resources are available:
InfluxDB Cloud customers can contact InfluxData Support.