math.ilogb() function
The math.ilogb()
function returns the binary exponent of x
as an integer.
Output data type: Integer
import "math"
math.ilogb(x: 123.45)
// Returns 6.0
Parameters
x
The value used in the operation.
Special cases
math.ilogb(x: ±Inf) // Returns MaxInt32
math.ilogb(x: 0) // Returns MinInt32
math.ilogb(x: NaN) // Returns MaxInt32
Was this page helpful?
Thank you for your feedback!
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, use the following resources:
InfluxDB Cloud customers can contact InfluxData Support.