--- title: Math.LOG10E slug: Web/JavaScript/Reference/Global_Objects/Math/LOG10E tags: - JavaScript - Math - Property - Propriedade - Referece - Referência(2) translation_of: Web/JavaScript/Reference/Global_Objects/Math/LOG10E ---
A propriedade Math.LOG10E representa o logaritmo com base 10 de e, aproximadamente 0.434:
Por LOG10E ser uma propriedade estática de Math, deve-se sempre usá-la como Math.LOG10E, e não como propriedade de um objeto Math criado por você (Math não é um construtor).
Math.LOG10EA função a seguir retorna o logaritmo com base 10 de e:
function getLog10e() {
return Math.LOG10E;
}
getLog10e(); // 0.4342944819032518
| Specification | Status | Comment |
|---|---|---|
| {{SpecName('ES1')}} | {{Spec2('ES1')}} | Initial definition. Implemented in JavaScript 1.0. |
| {{SpecName('ES5.1', '#sec-15.8.1.5', 'Math.LOG10E')}} | {{Spec2('ES5.1')}} | |
| {{SpecName('ES6', '#sec-math.log10e', 'Math.LOG10E')}} | {{Spec2('ES6')}} | |
| {{SpecName('ESDraft', '#sec-math.log10e', 'Math.LOG10E')}} | {{Spec2('ESDraft')}} |
{{Compat("javascript.builtins.Math.LOG10E")}}