Number.POSITIVE_INFINITY : POSITIVE_INFINITY « Number Data Type « JavaScript Tutorial






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>








5.17.POSITIVE_INFINITY
5.17.1.Number.POSITIVE_INFINITY