Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

JavaScript SQRT1_2 Property

JavaScript SQRT1_2 Property

Math Object Reference JavaScript Math object

Example

Return the square root of 1/2:

Math.SQRT1_2;

Output result:

0.7071067811865476

Try it »


Definition and Usage

The SQRT1_2 property returns the reciprocal of the square root of 2. This value is approximately 0.7071067811865476.


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the SQRT1_2 property.


Syntax

Math.SQRT1_2

Technical Details

Return Value: A number, returns the square root of 1/2
JavaScript version: 1.0

Math Object Reference JavaScript Math object