Math.SQRT2

You’re reading the English version of this content since no translation exists yet for this locale. Help us translate this article!

 Math.SQRT2 는 2의 제곱근을 나타내고 약 1.414 입니다:

Math.SQRT2=21.414\mathtt{\mi{Math.SQRT2}} = \sqrt{2} \approx 1.414

Property attributes of Math.SQRT2
Writable no
Enumerable no
Configurable no

설명

 SQRT2 는  Math의 정적 메서드 이므로 만든 Math 객체의 메서드가 아니라 항상 Math.SQRT2 함수를 사용해야합니다.  (Math는 생성자가 없습니다.)

예제

Math.SQRT2

이 함수는 2의 제곱근을 반환합니다.

function getRoot2() {
  return Math.SQRT2;
}

getRoot2(); // 1.4142135623730951

표준

표준 상태 비고
ECMAScript 1st Edition (ECMA-262) Standard Initial definition. Implemented in JavaScript 1.0.
ECMAScript 5.1 (ECMA-262)
The definition of 'Math.SQRT2' in that specification.
Standard  
ECMAScript 2015 (6th Edition, ECMA-262)
The definition of 'Math.SQRT2' in that specification.
Standard  
ECMAScript Latest Draft (ECMA-262)
The definition of 'Math.SQRT2' in that specification.
Draft  

브라우저 호환성

Update compatibility data on GitHub
DesktopMobileServer
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetNode.js
SQRT2Chrome Full support 1Edge Full support 12Firefox Full support 1IE Full support 3Opera Full support YesSafari Full support YesWebView Android Full support 1Chrome Android Full support 18Firefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support 1.0nodejs Full support Yes

Legend

Full support  
Full support

참조