SQRT
Returns the square root of the specified float value.
Syntax​
SQRT ( float_expression )
Arguments​
float_expression
Is an expression of type float or of a type that can be implicitly converted to float. Negative arguments return NULL.
Return Type​
Returns values of type FLOAT64.
Examples​
Examples in this section use the example blockchain.
This example shows the results of using the SQRT
function.
SELECT SQRT(real) FROM example;
Response:
SQRT(real) [FLOAT64]
NULL
0
1
1.4142135623730951