Math.E

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

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

시도해보기

Property attributes of Math.E
Writable 불가능
Enumerable 불가능
Configurable 불가능

설명

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

예제

Math.E 사용하기

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

js
function getNapier() {
  return Math.E;
}

getNapier(); // 2.718281828459045

명세

Specification
ECMAScript Language Specification
# sec-math.e

브라우저 호환성

BCD tables only load in the browser

같이 보기