SQRT
Descriptionβ
Returns the square root of a value, where the input value must be greater than or equal to 0.
Aliasesβ
- DSQRT
Syntaxβ
SQRT(<a>)
Parametersβ
Parameter | Description |
---|---|
<a> | The value whose square root is to be calculated |
Return Valueβ
The square root of parameter a.
Examplesβ
select sqrt(9),sqrt(2)
+-------------------------+-------------------------+
| sqrt(cast(9 as DOUBLE)) | sqrt(cast(2 as DOUBLE)) |
+-------------------------+-------------------------+
| 3.0 | 1.4142135623730951 |
+-------------------------+-------------------------+