JavaScript MIN_VALUEProperty

Number 对象参考手册JavaScript Number Object

Examples

Returns the smallest number in JavaScript:

Number.MIN_VALUE;

Output result:

5e-324

Try it Yourself »

Definition and Usage

The MIN_VALUE property is the smallest number representable in JavaScript (close to 0, but not negative). Its approximate value is 5 x 10-324。

Note:Numbers smaller than the MIN_VALUE property will be represented as 0.

Note:MIN_VALUE is the number closest to 0 in JavaScript, not a negative value; the negative value property is MAX_NUMBER.


Using Number.MIN_VALUE

MIN_VALUE is a static property of the JavaScript Number object, so the way to call this property is: Number.MIN_VALUE.

Using a custom Number object x to call this property (x.MIN_VALUE) will return undefined:

Examples

var x = 100;
x.MIN_VALUE;

x Output result:

undefined

Try it Yourself »


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the MIN_VALUE property.


Syntax

Number.MIN_VALUE

Technical Details

Return value: A Number, 5e-324
JavaScript version: 1.1


Number 对象参考手册JavaScript Number Object

Other Extensions