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. This value 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

Support du navigateur

Math.SQRT1_2 C'est une caractéristique ES1 (JavaScript 1999). Tous les navigateurs le supportent complètement :

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

Pages connexes

Tutoriel :Mathématiques JavaScript