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, 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

Browserunderstøttelse

Math.SQRT1_2 Er ES1-karakteristik (JavaScript 1999). Alle browsere understøtter det fuldt ud:

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

Relaterede sider

Tutorial:JavaScript matematik