Math.LN10
        
        
          
                Baseline
                
                  Widely available
                
                
              
        
        
        
          
                
              
                
              
                
              
        
        
      
      This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015년 7월.
Math.LN10 속성은 10의 자연로그 값, 약 2.302의 값을 가집니다.
시도해 보기
function getNatLog10() {
  return Math.LN10;
}
console.log(getNatLog10());
// Expected output: 2.302585092994046
Property attributes of Math.LN10 | |
|---|---|
| 쓰기 가능 | 불가능 | 
| 열거 가능 | 불가능 | 
| 설정 가능 | 불가능 | 
설명
LN10은 Math의 정적 속성이므로, 사용자가 생성한 Math 객체의 속성으로 접근할 수 없고 항상 Math.LN10을 사용해야 합니다. (Math는 생성자가 아닙니다)
예제
>Math.LN10 사용하기
    다음 함수는 10의 자연 로그 값을 반환합니다.
js
function getNatLog10() {
  return Math.LN10;
}
getNatLog10(); // 2.302585092994046
명세
| Specification | 
|---|
| ECMAScript® 2026 Language Specification> # sec-math.ln10>  | 
            
브라우저 호환성
Loading…