Skip to main content
Version: v4.23

sqrt

Computes the square root of a number.

sqrt(x:number) -> float

Description

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

Examples

Compute the square root of an integer

from {x: sqrt(49)}
{x: 7.0}

Fail to compute the square root of a negative number

from {x: sqrt(-1)}
{x: null}