Number.POSITIVE_INFINITY : POSITIVE_INFINITY : Number Data Type JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Number Data Type » POSITIVE_INFINITY »

 

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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Number Data Type
» POSITIVE_INFINITY