Baseline Widely available
La propiedad Math.LN2
representa el logaritmo natural de 2, aproximadamente 0.693:
function getNatLog2() {
return Math.LN2;
}
console.log(getNatLog2());
// Expected output: 0.6931471805599453
Sobrescribir No Numerable No Configurable No Descripción
Como LN2
es una propiedad estática de Math
, siempre se usa como Math.LN2
, en lugar de como una propiedad de un objeto Math
que ha creado (Math
no es un constructor).
Math.LN2
La función siguiente devuelve el logaritmo natural de 2:
function getNatLog2() {
return Math.LN2;
}
getNatLog2(); // 0.6931471805599453
Especificaciones Compatibilidad con navegadores Ver también
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