Math.LN10
La propriété Math.LN10
représente la valeur du logarithme naturel de 10, environ 2.302 :
Exemple interactif
Attributs de Math.LN10 |
|
---|---|
Écrivable | Non |
Énumérable | Non |
Configurable | Non |
Description
LN10
est une propriété statique de Math
, elle doit toujours être utilisée avec la syntaxe Math.LN10
, 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.LN10
La fonction suivante renvoie le logarithme naturel de 10 :
function getNatLog10() {
return Math.LN10;
}
getNatLog10(); // 2.302585092994046
Spécifications
Specification |
---|
ECMAScript Language Specification # sec-math.ln10 |
Compatibilité des navigateurs
BCD tables only load in the browser