Get to know MDN better
Esta página ha sido traducida del inglés por la comunidad. Aprende más y únete a la comunidad de MDN Web Docs.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since julio de 2015.
La propiedad Number.MIN_VALUE representa el menor valor positivo numérico representable en JavaScript.
| Sobrescribir | No |
| Numerable | No |
| Configurable | No |
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.
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.
| ECMAScript® 2027 Language Specification # sec-number.min_value |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 3 ago 2023 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.