A RetroSearch Logo

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

Search Query:

Showing content from https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/Math/LN2 below:

Math.LN2 - JavaScript | MDN

Math.LN2

Baseline Widely available

A propriedade Math.LN2 representa o logaritmo natural (também conhecido como logaritmo neperiano) de 2, que é aproximadamente 0.693:

Math.LN2 = ln ( 2 ) ≈ 0.693 \mathtt{\mi{Math.LN2}} = \ln(2) \approx 0.693 Writable no Enumerable no Configurable no Descrição

Por LN2 ser uma propriedade estática de Math, deve-se sempre usá-la como Math.LN2, e não como uma propriedade de um objeto Math que você criou.

Exemplos Usando Math.LN2

A função a seguir retorna o logaritmo natural de 2:

function getNatLog2() {
  return Math.LN2;
}

getNatLog2(); // 0.6931471805599453
Especificações Compatibilidade com navegadores Veja também

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