JavaScript tutorial:
SQRT1_2 property

 

Applies to: Math Object

The SQRT1_2 property is used to get the square root of 0.5, or one divided by the square root of 2.

Syntax

var numVar
numVar
= Math.SQRT1_2

Return value

Returns he square root of 0.5, or one divided by the square root of 2.

Example

The SQRT1_2 property, a constant, is approximately equal to 0.707.

See also: Math Object Properties, sqrt Method, SQRT2 Property