JavaScript Math.SQRT1_2
Definition and Usage
Math.SQRT1_2 returns the square root of 1/2, approximately 0.707.
Browser Support
Math.SQRT1_2
is an ECMAScript1 (ES1) feature.
ES1 (JavaScript 1997) is fully supported in all browsers:
Chrome | IE | Edge | Firefox | Safari | Opera |
Yes | Yes | Yes | Yes | Yes | Yes |
Syntax
Math.SQRT1_2
Return Value
A number representing the square root of 1/2. |