math.sqrt() function
The math.sqrt()
function returns the square root of x
.
Output data type: Float
import "math"
math.sqrt(x: 4.0)
// Returns 2.0
Parameters
x
The value used in the operation.
Data type: Float
Special cases
math.sqrt(x: +Inf) // Returns +Inf
math.sqrt(x: ±0) // Returns ±0
math.sqrt(x: <0) // Returns NaN
math.sqrt(x: NaN) // Returns NaN
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support, the following resources are available:
InfluxDB Cloud and InfluxDB Enterprise customers can contact InfluxData Support.