Export (0) Print
Expand All

Math.sqrt Function (JavaScript)

Returns the square root of a number.

Math.sqrt(number)

The required number argument is a numeric expression.

If number is negative, the return value is NaN.

Supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards, Internet Explorer 10 standards, Internet Explorer 11 standards. Also supported in Store apps (Windows 8 and Windows Phone 8.1). See Version Information.

Applies To: Math Object (JavaScript)

Show:
© 2014 Microsoft