★ wanayoo — archive 1999 https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Math/LOG2ENouvelle recherche | Portail wanayoo

Apply your JS skills to key Mozilla projects as an MDN Fellow! http://mzl.la/MDNFellowship

mozilla
Ihre Suchergebnisse

    Math.LOG2E

    Zusammenfassung

    Die Math.LOG2E Eigenschaft repräsentiert den Logarithmus zur Basis 2 von e:

    Math.LOG2E=log2(e)≈1.442\mathtt{\mi{Math.LOG2E}} = \log_2(e) \approx 1.442

    Property attributes of Math.LOG2E
    Writable no
    Enumerable no
    Configurable no

    Beschreibung

    Weil LOG2E eine statische Eigenschaft von Math ist, kann diese immer über Math.LOG2E erreicht werden, ohne dass ein Objekt erstellt werden muss (Math ist kein Konstruktor).

    Beispiele

    Beispiel: Math.LOG2E benutzen

    Die folgende Funktion gibt den Logarithmus zur Basis 2 von e zurück.

    function getLog2e() {
       return Math.LOG2E
    }
    
    getLog2e() // 1.4426950408889634

    Spezifikationen

    Spezifikation Status Kommentar
    ECMAScript 1st Edition. Implemented in JavaScript 1.0 Standard Initiale Definition.
    ECMAScript 5.1 (ECMA-262)
    Die Definition von 'Math.LOG2E' in dieser Spezifikation.
    Standard  
    ECMAScript 6 (ECMA-262)
    Die Definition von 'Math.LOG2E' in dieser Spezifikation.
    Entwurf  

    Browserkompatibilität

    Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
    Basic support (Ja) (Ja) (Ja) (Ja) (Ja)
    Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
    Basic support (Ja) (Ja) (Ja) (Ja) (Ja) (Ja)

    Siehe auch

    Schlagwörter des Dokuments und Mitwirkende

    Schlagwörter: 
    Mitwirkende an dieser Seite: schlagi123
    Zuletzt aktualisiert von: schlagi123,