This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

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์˜ ๊ฐ’์„ ๊ฐ€์ง‘๋‹ˆ๋‹ค.

Math.LN10=ln(10)โ‰ˆ2.302\mathtt{\mi{Math.LN10}} = \ln(10) \approx 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

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

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