August 1999
Intermediate to advanced
1488 pages
72h 53m
English
Number.MAX_VALUE
The MAX_VALUE property of the Number object is used to get the maximum representable value for a number. This is approximately: 1.79E
308.
Listing 6.182 shows how the MAX_VALUE property is used.
<html>
<body>
<script language="JavaScript">
<!–– Hide
// checks to see if the number is a MAX_VALUE
if((9999*9999) <= Number.MAX_VALUE){
document.write("The number is not greater than the maximum value");
}
// End Hide ––>
</script>
</body>
</html>
|
Read now
Unlock full access