Number.NEGATIVE_INFINITY : NEGATIVE_INFINITY : Number Data Type JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Number Data Type » NEGATIVE_INFINITY »

 

Number.NEGATIVE_INFINITY








The NEGATIVE_INFINITY property represents a negative infinity number.

It is returned when a calculation returns a negative number greater than the largest negative number in JavaScript.












<html>
    <body>
    <script language="JavaScript">
    <!--
    if((Math.sqrt(-2)) != Number.NEGATIVE_INFINITY_){
         document.write("This is not equal to NEGATIVE_INFINITY");
    }
    else{
        document.write("This is equal to NEGATIVE_INFINITY");
    }
    -->
    </script>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Number Data Type
» NEGATIVE_INFINITY