JavaScript SQRT1_2 property

Definition and usage

SQRT1_2 The property returns the square root of 1/2, approximately 0.707.

SQRT1_2 The property returns the reciprocal of the square root of 2, which is approximately 0.7071067811865476.

Example

Returns the square root of 1/2:

Math.SQRT1_2;

Try it yourself

Syntax

Math.SQRT1_2

Technical details

Return value: A number representing the square root of 1/2.
JavaScript version: ECMAScript 1

Browser Support

Math.SQRT1_2 Is an ES1 feature (JavaScript 1999). All browsers fully support it:

Chrome IE Edge Firefox Safari Opera
Support Support Support Support Support Support

Related Pages

Tutorial:JavaScript Math