Mega Code Archive

 
Categories / JavaScript Tutorial / Number Data Type
 

Number POSITIVE_INFINITY

The POSITIVE_INFINITY property represents a positive infinity number. It is returned when a calculation returns a positive number greater than the largest number in JavaScript. <html>     <body>     <script language="JavaScript">     <!--     if((Math.exp(999)) <= Number.POSITIVE_INFINITY_){          document.write("This is less than positive infinity");     }     else{          document.write('This is greater than POSITIVE_INFINITY");     }     -->     </script>     </body>     </html>