Skip to content
Legacy docs for Tenzir v5.x. For the latest Tenzir v6 series, visit docs.tenzir.com. Migrating from v5? Read the Tenzir v6 migration guide.

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}

Last updated: