JavaScript SQRT1_2Property

Math 对象参考手册JavaScript Math Object

Example

Return the square root of 1/2:

Math.SQRT1_2;

Output result:

0.7071067811865476

Try it yourself »

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 对象参考手册JavaScript Math Object

Other Extensions