[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Math/E [Back]  [Original]

Math.E - JavaScript | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

Math.E

Baseline Widely available

This feature is well established and works across many devices and browser versions. Its been available across browsers since 2015 7.

Math.E , e 2.718 .

In this article

function compoundOneYear(interestRate, currentVal) {
  return currentVal * Math.E ** interestRate;
}

console.log(Math.E);
// Expected output: 2.718281828459045

console.log((1 + 1 / 1000000) ** 1000000);
// Expected output: 2.718280469 (approximately)

console.log(compoundOneYear(0.05, 100));
// Expected output: 105.12710963760242

.=e2.718\mathtt{Math.E} = e \approx 2.718
Property attributes of Math.E

E Math , Math (Math ) Math.E .

Math.E

e .

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

getNapier(); // 2.718281828459045

Specification
ECMAScript 2027 LanguageSpecification
# sec-math.e


Web Proxy Viewer  |  New URL  |  Original Page