ES|QL SQRT function
number-
Numeric expression. If
null, the function returnsnull.
Returns the square root of a number. The input can be any numeric value, the return value is always a double. Square roots of negative numbers and infinities are null.
| number | result |
|---|---|
| double | double |
| integer | double |
| long | double |
| unsigned_long | double |
ROW d = 100.0
| EVAL s = SQRT(d)
| d: double | s:double |
|---|---|
| 100.0 | 10.0 |