Math.LN10
속성은 10의 자연로그 값, 약 2.302의 값을 가집니다.
The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
Property attributes of Math.LN10 |
|
---|---|
Writable | no |
Enumerable | no |
Configurable | no |
설명
LN10
은 Math
의 정적 속성이므로, 사용자가 생성한 Math
객체의 속성으로 접근할 수 없고 항상 Math.LN10
을 사용해야 합니다. (Math
는 생성자가 아닙니다)
예제
Math.LN10
사용하기
다음 함수는 10의 자연 로그 값을 반환합니다.
function getNatLog10() {
return Math.LN10;
}
getNatLog10(); // 2.302585092994046
명세
Specification | Status | Comment |
---|---|---|
ECMAScript 1st Edition (ECMA-262) | Standard | Initial definition. Implemented in JavaScript 1.0. |
ECMAScript 5.1 (ECMA-262) The definition of 'Math.LN10' in that specification. |
Standard | |
ECMAScript 2015 (6th Edition, ECMA-262) The definition of 'Math.LN10' in that specification. |
Standard | |
ECMAScript (ECMA-262) The definition of 'Math.LN10' in that specification. |
Living Standard |
브라우저 호환성
BCD tables only load in the browser
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.