Math.LOG10E

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.

La propriété Math.LOG10E fournit la valeur du logarithme en base 10 de e, environ 0.434 :

Math.LOG10E=log10(e)0.434\mathtt{\mi{Math.LOG10E}} = \log_10(e) \approx 0.434

Exemple interactif

function getLog10e() {
  return Math.LOG10E;
}

console.log(getLog10e());
// Expected output: 0.4342944819032518
Attributs de Math.LOG10E
ÉcrivableNon
ÉnumérableNon
ConfigurableNon

Description

LOG10E étant une propriété statique de Math, elle doit toujours être utilisée avec la syntaxe Math.LOG10E et ne pas être appelée comme propriété d'un autre objet qui aurait été créé (Math n'est pas un constructeur).

Exemples

Utiliser Math.LOG10E

La fonction suivante renvoie le logarithme en base 10 de e :

js
function getLog10e() {
  return Math.LOG10E;
}

getLog10e(); // 0.4342944819032518

Spécifications

Specification
ECMAScript® 2025 Language Specification
# sec-math.log10e

Compatibilité des navigateurs

Report problems with this compatibility data on GitHub
desktopmobileserver
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Deno
Node.js
LOG10E

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

Voir aussi