Skip to content

sqrt

Computes the square root of a number.

sqrt(x:number) -> float

The sqrt function computes the square root of any non-negative number x.

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}