A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Math/E below:

Math.E - JavaScript | MDN

Math.E

Baseline Widely available

Math.E 정적 데이터 속성은 오일러 수를 의미하며, 자연로그의 밑 값 e를 나타내며 약 2.718의 값을 가집니다.

시도해 보기
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
값 𝙼𝚊𝚝𝚑.𝙴 = e ≈ 2.718 \mathtt{Math.E} = e \approx 2.718 쓰기 가능 불가능 열거 가능 불가능 설정 가능 불가능 설명

E는 Math의 정적 속성이므로, 생성한 Math 객체(Math는 생성자가 아닙니다)의 속성 대신 항상 Math.E를 사용해야 합니다.

예제 Math.E 사용하기

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

function getNapier() {
  return Math.E;
}

getNapier(); // 2.718281828459045
명세서 브라우저 호환성 같이 보기

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4