JavaScript SQRT1_2 property

Definition and usage

SQRT1_2 The property returns the square root of 1/2, about 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

Webbläsarstöd

Math.SQRT1_2 Är ES1-funktioner (JavaScript 1999). Alla webbläsare stöder det fullt ut:

Chrome IE Edge Firefox Safari Opera
Stöd Stöd Stöd Stöd Stöd Stöd

Relaterade sidor

Lärplattform:JavaScript matematik