Search w3schools.com:

SHARE THIS PAGE

JavaScript SQRT2 Property

Math Object Reference JavaScript Math Object

Example

Return the square root of 2:

Math.SQRT2;

The result will be:

1.4142135623730951

Try it yourself »

Definition and Usage

The SQRT2 property returns the square root of 2, approximately 1.414.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The SQRT2 property is supported in all major browsers.


Syntax

Math.SQRT2

Technical Details

Return Value: A Number, representing the square root of 2
JavaScript Version: 1.0


Math Object Reference JavaScript Math Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]