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






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>








5.15.NEGATIVE_INFINITY
5.15.1.Number.NEGATIVE_INFINITY