A RetroSearch Logo

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

Search Query:

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

Math.SQRT1_2 - JavaScript | MDN

Math.SQRT1_2

Baseline Widely available

Die statische Dateneigenschaft Math.SQRT1_2 repräsentiert die Quadratwurzel aus 1/2, was ungefähr 0,707 ist.

Probieren Sie es aus
function getRoot1Over2() {
  return Math.SQRT1_2;
}

console.log(getRoot1Over2());
// Expected output: 0.7071067811865476
Wert 𝙼𝚊𝚝𝚑.𝚂𝚀𝚁𝚃𝟷_𝟸 = 1 2 ≈ 0.707 \mathtt{Math.SQRT1_2} = \sqrt{\frac{1}{2}} \approx 0.707 Schreibbar nein Aufzählbar nein Konfigurierbar nein Beschreibung

Math.SQRT1_2 ist eine Konstante und eine leistungsfähigere Entsprechung zu Math.sqrt(0.5).

Da SQRT1_2 eine statische Eigenschaft von Math ist, wird es immer als Math.SQRT1_2 verwendet und nicht als Eigenschaft eines von Ihnen erstellten Math-Objekts (Math ist kein Konstruktor).

Beispiele Verwendung von Math.SQRT1_2

Die folgende Funktion gibt 1 über die Quadratwurzel von 2 zurück:

function getRoot1_2() {
  return Math.SQRT1_2;
}

getRoot1_2(); // 0.7071067811865476
Spezifikationen Browser-Kompatibilität Siehe auch MDN-Feedback-Box War diese Übersetzung hilfreich?

Diese Seite wurde automatisch aus dem Englischen übersetzt.


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