Language Reference sqrt Method


Description

Computes the square root of its numeric argument.

Syntax

var varName = Math.sqrt( number )

Arguments

number: A numeric value for which the square root is desired.

Return Value

The square root of number. If number is negative, the return value is zero.