JavaScript Math.LOG10E Constant

Definition
Math.LOG10E is a built-in constant that holds the base-10 logarithm of e, about 0.4342944819032518. You read it as a property. You do not call it.
Read the value, use it in your math, and check the examples below for common patterns.
Syntax
Read the constant. Start with this line.
| Usage | What it does |
|---|
Math.LOG10E | Read the base-10 logarithm of e. |
Built into JavaScript. Read Math.LOG10E directly from the Math object — no parentheses and no import required.
Library declarations
Parameters
None. Math.LOG10E is a constant (a fixed value), not a function. Do not add parentheses.
Return Value
| Return Value | Description |
|---|
| Number | About 0.4342944819032518. |
JavaScript Examples
Example 1 — Read the Value of Math.LOG10E
No parentheses are needed.
console.log(Math.LOG10E); // 0.4342944819032518
console.log(Math.LOG10E.toFixed(4)); // 0.4343
console.log(typeof Math.LOG10E); // number
0.4342944819032518
0.4343
number
How It Works
- Plain property.
Math.LOG10E is a value, not a function. - Short form.
toFixed(4) keeps 4 decimals. - Type.
typeof says it is a number. - What it means. It answers: what power of 10 gives
e?
Example 2 — Convert a Natural Log to Base 10
Multiply a natural log by Math.LOG10E to get a base-10 log.
console.log((Math.log(100) * Math.LOG10E).toFixed(4)); // 2.0000
console.log((Math.log(1000) * Math.LOG10E).toFixed(4)); // 3.0000
console.log(Math.log10(100)); // 2
How It Works
- Change of base.
Math.log(x) * Math.LOG10E is the base-10 log of x. - 100. 10 to the power of 2 is 100, so the answer is
2. - 1000. 10 to the power of 3 is 1000, so the answer is
3. - Shortcut.
Math.log10(100) does it in one step.
Example 3 — It Is the Reverse of Math.LN10
The two constants undo each other.
console.log((Math.LOG10E * Math.LN10).toFixed(10)); // 1.0000000000
console.log((1 / Math.LN10).toFixed(10)); // 0.4342944819
console.log(Math.LOG10E.toFixed(10)); // 0.4342944819
1.0000000000
0.4342944819
0.4342944819
How It Works
- Multiply.
LOG10E × LN10 is about 1. - Reciprocal.
1 / Math.LN10 is the same as Math.LOG10E. - Compare. Both print
0.4342944819 to 10 decimals. - Use toFixed. Rounding hides the last tiny digits.
Compatibility
Browser & Runtime Support
Math.LOG10E is part of the first JavaScript standard (ES1) and is Baseline Widely available in every browser and in Node.js.
✓ Baseline · ES1
Math.LOG10E
A long-standing constant. It works in Chrome, Firefox, Safari, Edge, Internet Explorer and Node.js.
99% Modern browser support
Google Chrome Supported · Desktop & Mobile
Full support
Mozilla Firefox Supported · Desktop & Mobile
Full support
Apple Safari Supported · macOS & iOS
Full support
Microsoft Edge Supported · Chromium
Full support
Internet Explorer No native support · Use a polyfill
Polyfill
Opera Supported · Modern versions
Full support
Samsung Internet Supported · Android
Full support
Bun Supported · JavaScript runtime
Supported
Deno Supported · JavaScript runtime
Supported
Node.js Supported · Server runtime
Supported
Android WebView Supported · Modern WebView
Full supportMath.LOG10E Excellent
Bottom line: Use Math.LOG10E anywhere. It works in all browsers.
Frequently Asked Questions
It is the base-10 logarithm of e, about 0.4342944819032518.
No. It is a number. Write Math.LOG10E without parentheses.
Multiply a natural log by it: Math.log(x) * Math.LOG10E gives the base-10 log of x.
They are reciprocals. Math.LOG10E is about 1 / Math.LN10.
Usually yes. Math.log10(x) is easier to read. Math.LOG10E is handy in formulas.
All of them. It is part of the first JavaScript standard and works in every browser and in Node.js.
About the author
Developer, cloud engineer, and technical writer
I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.
9 people found this page helpful