A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Math/LOG2E below:

Math.LOG2E - JavaScript | MDN

Math.LOG2E

Baseline Widely available

La propriété Math.LOG2E représente la valeur du logarithme en base 2 de e, environ 1.442 :

Math.LOG2E = log 2 ( e ) ≈ 1.442 \mathtt{\mi{Math.LOG2E}} = \log_2(e) \approx 1.442 Exemple interactif
function getLog2e() {
  return Math.LOG2E;
}

console.log(getLog2e());
// Expected output: 1.4426950408889634
Écrivable Non Énumérable Non Configurable Non Description

LOG2E est une propriété statique de l'objet Math et doit toujours être utilisé avec la syntaxe Math.LOG2E plutôt que comme la propriété d'un autre objet qui aurait été créé (Math n'est pas un constructeur).

Exemples Utiliser Math.LOG2E

La fonction suivante renvoie la valeur du logarithme en base 2 de e :

function getLog2e() {
  return Math.LOG2E;
}

getLog2e(); // 1.4426950408889634
Spécifications Compatibilité des navigateurs Voir aussi

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4