A RetroSearch Logo

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

Search Query:

Showing content from https://developer.mozilla.org/es/docs/Web/JavaScript/Reference/Global_Objects/Number/MIN_VALUE below:

Number.MIN_VALUE - JavaScript | MDN

Number.MIN_VALUE

Baseline Widely available

La propiedad Number.MIN_VALUE representa el menor valor positivo numérico representable en JavaScript.

Sobrescribir No Numerable No Configurable No Descripción

La propiedad MIN_VALUE es el número más cercano a 0, no el más negativo, que JavaScript puede representar.

MIN_VALUE tiene un valor aproximado de 5e-324. Los valores menores que MIN_VALUE ("subdesbordamiento de valores") son convertidos a 0.

Ya que MIN_VALUE es una propiedad estática de Number, debes utilizarla como Number.MIN_VALUE, más que como una propiedad del objeto Number que has creado.

Ejemplos Usando MIN_VALUE

El siguiente código divide dos valores numéricos. Si el resultado es mayor o igual a MIN_VALUE, se ejecuta la función func1, si no, se ejecuta la función func2.

if (num1 / num2 >= Number.MIN_VALUE) {
  func1();
} else {
  func2();
}
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