Math.LN2
Baseline Widely available
This feature is well established and works across many devices and browser versions. Itโs been available across browsers since July 2015.
The Math.LN2
property represents the natural logarithm of 2, approximately 0.693:
Math.LN2
์์ฑ์ 2์ ์์ฐ๋ก๊ทธ ๊ฐ, ์ฝ 0.693์ ๊ฐ์ ๊ฐ์ง๋๋ค.
์๋ํด ๋ณด๊ธฐ
function getNatLog2() {
return Math.LN2;
}
console.log(getNatLog2());
// Expected output: 0.6931471805599453
Property attributes of Math.LN2 | |
---|---|
์ฐ๊ธฐ ๊ฐ๋ฅ | ๋ถ๊ฐ๋ฅ |
์ด๊ฑฐ ๊ฐ๋ฅ | ๋ถ๊ฐ๋ฅ |
์ค์ ๊ฐ๋ฅ | ๋ถ๊ฐ๋ฅ |
์ค๋ช
LN2
๋ Math
์ ์ ์ ์์ฑ์ด๋ฏ๋ก, ์ฌ์ฉ์๊ฐ ์์ฑํ Math
๊ฐ์ฒด์ ์์ฑ์ผ๋ก ์ ๊ทผํ ์ ์๊ณ ํญ์ Math.LN2
๋ฅผ ์ฌ์ฉํด์ผ ํฉ๋๋ค. (Math
๋ ์์ฑ์๊ฐ ์๋๋๋ค)
Examples
Math.LN2
์ฌ์ฉํ๊ธฐ
๋ค์ ํจ์๋ 2์ ์์ฐ ๋ก๊ทธ ๊ฐ์ ๋ฐํํฉ๋๋ค.
function getNatLog2() {
return Math.LN2;
}
getNatLog2(); // 0.6931471805599453
๋ช ์ธ
Specification |
---|
ECMAScriptยฎ 2026 Language Specification # sec-math.ln2 |