Math.SQRT2 (Constant/static)

A mathematical constant value.

Availability:

ECMAScript edition - 2
JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape - 2.0
Netscape Enterprise Server version - 2.0
Opera - 3.0
Property/method value type:Number primitive
JavaScript syntax:-Math.SQRT2

This constant provides the value of the square root of 2.

The resulting value returned is approximately 1.414213562373095 (to 15 d.p.)

Warnings:

See also:Arithmetic constant, Floating point constant, Math object, Math.SQRT1_2

Property attributes:

ReadOnly, DontDelete, DontEnum.

Cross-references:

ECMA 262 edition 2 - section - 15.8.1.8

ECMA 262 edition 3 - section - 15.8.1.8