--- title: Math.LN10 slug: Web/JavaScript/Reference/Global_Objects/Math/LN10 tags: - JavaScript - Math - Property - Reference translation_of: Web/JavaScript/Reference/Global_Objects/Math/LN10 ---
Math.LN10
속성은 10의 자연로그 값, 약 2.302의 값을 가집니다.
LN10
은 Math
의 정적 속성이므로, 사용자가 생성한 Math
객체의 속성으로 접근할 수 없고 항상 Math.LN10
을 사용해야 합니다. (Math
는 생성자가 아닙니다)
Math.LN10
사용하기다음 함수는 10의 자연 로그 값을 반환합니다.
function getNatLog10() { return Math.LN10; } getNatLog10(); // 2.302585092994046
Specification | Status | Comment |
---|---|---|
{{SpecName('ES1')}} | {{Spec2('ES1')}} | Initial definition. Implemented in JavaScript 1.0. |
{{SpecName('ES5.1', '#sec-15.8.1.2', 'Math.LN10')}} | {{Spec2('ES5.1')}} | |
{{SpecName('ES6', '#sec-math.ln10', 'Math.LN10')}} | {{Spec2('ES6')}} | |
{{SpecName('ESDraft', '#sec-math.ln10', 'Math.LN10')}} | {{Spec2('ESDraft')}} |
{{Compat("javascript.builtins.Math.LN10")}}