--- title: Math.E slug: Web/JavaScript/Reference/Global_Objects/Math/E tags: - JavaScript - Math - Property - Reference translation_of: Web/JavaScript/Reference/Global_Objects/Math/E ---
{{JSRef}}

Math.E 속성은 자연로그의 밑 값  e를 나타내며 약 2.718의 값을 가집니다.

Math.E=e2.718\mathtt{\mi{Math.E}} = e \approx 2.718

{{EmbedInteractiveExample("pages/js/math-e.html")}}
{{js_property_attributes(0, 0, 0)}}

설명

EMath의 정적 속성이므로, 사용자가 생성한 Math 객체의 속성으로 접근할 수 없고 항상 Math.E를 사용해야 합니다. (Math는 생성자가 아닙니다)

예제

Math.E 사용하기

다음 함수는 e 값을 반환합니다.

function getNapier() {
  return Math.E;
}

getNapier(); // 2.718281828459045

명세

Specification Status Comment
{{SpecName('ES1')}} {{Spec2('ES1')}} Initial definition. Implemented in JavaScript 1.0.
{{SpecName('ES5.1', '#sec-15.8.1.1', 'Math.E')}} {{Spec2('ES5.1')}}  
{{SpecName('ES6', '#sec-math.e', 'Math.E')}} {{Spec2('ES6')}}  
{{SpecName('ESDraft', '#sec-math.e', 'Math.E')}} {{Spec2('ESDraft')}}  

브라우저 호환성

{{Compat("javascript.builtins.Math.E")}}

같이 보기