Number.MIN_VALUE

JavaScript 1.1+, ECMAScript 1.0+, JScript 1.0+ Nav3+, NES2+, IE 3+, Opera3+ Syntax

Number.MIN_VALUE

Description

The MIN_VALUE property of the Number object is used to get the minimum possible numeric value known to JavaScript. This is approximately: 2.22E–308.

Example

Listing 6.183 shows how the MIN_VALUE property is used.

Listing 6.183 Example of MIN_VALUE
<html>
<body>

<script language="JavaScript">
<!–– Hide
// Checks to see if the number is equal to the MIN_VALUE

if((0.00000002) >= Number.MIN_VALUE){
     document.write("The number is not the minimum value");
}
// End Hide ––>
</script>

</body>
</html>
							
							
						

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.