JavaScript SQRT1_2 Property
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





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 |
JavaScript Math object