JavaScriptNumberMath.log10
Math.log2

Math.log10Number

Math.sin

Returns the base 10 logarithm of a number.

문법

Math.log10(x)

예제

아래 값을 입력하면 예제에 즉시 반영됩니다.

console
Math
console.log(Math.log10(100));    // 2
console.log(Math.log10(1000));   // 3