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

Yes

Number greater than or equal to zero.

Return value

Type Description

Number

Square root of x.

Examples

Math.sqrt(2)
 1.4142135623730951

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!