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.303 ã表ãã¾ãã
試ãã¦ã¿ã¾ããã
function getNatLog10() {
return Math.LN10;
}
console.log(getNatLog10());
// äºæ³ãããçµæ: 2.302585092994046
å¤
Math.LN10 ã®ããããã£å±æ§ | |
|---|---|
| æ¸è¾¼å¯è½ | ä¸å¯ |
| åæå¯è½ | ä¸å¯ |
| è¨å®å¯è½ | ä¸å¯ |
解説
LN10 㯠Math ãªãã¸ã§ã¯ãã®éçããããã£ãªã®ã§ã Math ãªãã¸ã§ã¯ããçæãã¦ããããã£ã¨ãã¦ä½¿ç¨ããã®ã§ã¯ãªãã常㫠Math.LN10 ã¨ãã¦ä½¿ç¨ããããã«ãã¦ãã ãã (Math ã¯ã³ã³ã¹ãã©ã¯ã¿ã¼ã§ã¯ããã¾ãã)ã
ä¾
>Math.LN10 ã®ä½¿ç¨
以ä¸ã®é¢æ°ã¯ã10 ã®èªç¶å¯¾æ°ãè¿ãã¾ãã
js
function getNatLog10() {
return Math.LN10;
}
getNatLog10(); // 2.302585092994046
仿§æ¸
| Specification |
|---|
| ECMAScript® 2027 Language Specification> # sec-math.ln10> |