Math.sqrt()

Get the square root of a Number.

Signature

Math.sqrt(x: Number) => Number

Description

Gets the square root of a Number.

Parameters

Parameter Type Required Description

x

Number

true

Number greater than or equal to zero.

Return value

Type Description

Number

Square root of the provided number.

Examples

Math.sqrt(2)
1.4142135623730951
\