Latest web development tutorials

JavaScript SQRT1_2 property

Math Object Reference JavaScript Math Object

Examples

Returns the square root of 1/2:

Math.SQRT1_2;

Output:

0.7071067811865476

try it"

Definition and Usage

SQRT1_2 property returns the inverse of the square root of 2. This value is approximately 0.7071067811865476.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support SQRT1_2 property.


grammar

Math.SQRT1_2

technical details

return value: A number, returns the square root of 1/2
JavaScript version: 1.0


Math Object Reference JavaScript Math Object