sqrt
Computes the square root of a number.
sqrt(x:number) -> float
Description
Section titled “Description”The sqrt
function computes the square
root of any non-negative number x
.
Examples
Section titled “Examples”Compute the square root of an integer
Section titled “Compute the square root of an integer”from {x: sqrt(49)}
{x: 7.0}
Fail to compute the square root of a negative number
Section titled “Fail to compute the square root of a negative number”from {x: sqrt(-1)}
{x: null}