Math.LN2

The Math.LN2 property represents the natural logarithm of 2, approximately 0.693:

Math.LN2 ์†์„ฑ์€ 2์˜ ์ž์—ฐ๋กœ๊ทธ ๊ฐ’, ์•ฝ 0.693์˜ ๊ฐ’์„ ๊ฐ€์ง‘๋‹ˆ๋‹ค.

Math.LN2=ln(2)โ‰ˆ0.693\mathtt{\mi{Math.LN2}} = \ln(2) \approx 0.693

Property attributes of Math.LN2
Writable no
Enumerable no
Configurable no

์„ค๋ช…

LN2๋Š” Math์˜ ์ •์  ์†์„ฑ์ด๋ฏ€๋กœ, ์‚ฌ์šฉ์ž๊ฐ€ ์ƒ์„ฑํ•œ Math ๊ฐ์ฒด์˜ ์†์„ฑ์œผ๋กœ ์ ‘๊ทผํ•  ์ˆ˜ ์—†๊ณ  ํ•ญ์ƒ Math.LN2๋ฅผ ์‚ฌ์šฉํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. (Math๋Š” ์ƒ์„ฑ์ž๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค)

Examples

Math.LN2 ์‚ฌ์šฉํ•˜๊ธฐ

๋‹ค์Œ ํ•จ์ˆ˜๋Š” 2์˜ ์ž์—ฐ ๋กœ๊ทธ ๊ฐ’์„ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.

function getNatLog2() {
  return Math.LN2;
}

getNatLog2(); // 0.6931471805599453

๋ช…์„ธ

๋ธŒ๋ผ์šฐ์ € ํ˜ธํ™˜์„ฑ

BCD tables only load in the browser

๊ฐ™์ด ๋ณด๊ธฐ