Name

Math.SQRT1_2 — the mathematical constant 1/√2

Availability

JavaScript 1.0; JScript 1.0; ECMAScript v1

Synopsis

Math.SQRT1_2

Description

Math.SQRT1_2 is 1/√2 the reciprocal of the square root of 2. This constant has a value of approximately 0.7071067811865476.

Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.