Compare Revisions

Number.NEGATIVE_INFINITY

Revision 417671:

Revision 417671 by Sheppy on

Revision 480929:

Revision 480929 by fscholz on

Title:
NEGATIVE INFINITY
Number.NEGATIVE_INFINITY
Slug:
Web/JavaScript/Reference/Global_Objects/Number/NEGATIVE_INFINITY
Web/JavaScript/Reference/Global_Objects/Number/NEGATIVE_INFINITY
Tags:
"Number"
"Number","JavaScript","Property"
Content:

Revision 417671
Revision 480929
nn7    <div>
8      {{JSRef("Global_Objects", "Number")}}
9    </div>
n13    <table class="standard-table">n16    <p>
14      <thead>17      {{js_property_attributes(0,0,0)}}
15        <tr>18    </p>
16          <th class="header" colspan="2">
17            Property of <a href="/en-US/docs/JavaScript/Reference
>/Global_Objects/Number"><code>Number</code></a> 
18          </th>
19        </tr>
20      </thead>
21      <tbody>
22        <tr>
23          <td>
24            Implemented in
25          </td>
26          <td>
27            JavaScript 1.1
28          </td>
29        </tr>
30        <tr>
31          <td>
32            ECMAScript Edition
33          </td>
34          <td>
35            ECMAScript 1st Edition
36          </td>
37        </tr>
38      </tbody>
39    </table>
n44      The value of <code>Number.NEGATIVE_INFINITY</code> is the sn23      The value of <code>Number.NEGATIVE_INFINITY</code> is the s
>ame as the negative value of the global object's <a href="/en-US/>ame as the negative value of the global object's {{jsxref("Global
>docs/JavaScript/Reference/Global_Objects/Infinity" title="JavaScr>_Objects/Inifinity", "Infinity")}} property.
>ipt/Reference/Global_Properties/Infinity">Infinity</a> property. 
n50      <li>Any positive value, including POSITIVE_INFINITY, multipn29      <li>Any positive value, including <code>POSITIVE_INFINITY</
>lied by NEGATIVE_INFINITY is NEGATIVE_INFINITY.>code>, multiplied by <code>NEGATIVE_INFINITY</code> is <code>NEGA
 >TIVE_INFINITY</code>.
30      </li>
31      <li>Any negative value, including <code>NEGATIVE_INFINITY</
 >code>, multiplied by <code>NEGATIVE_INFINITY</code> is <code>POSI
 >TIVE_INFINITY</code>.
32      </li>
33      <li>Zero multiplied by <code>NEGATIVE_INFINITY</code> is <c
 >ode>NaN</code>.
34      </li>
35      <li>NaN multiplied by <code>NEGATIVE_INFINITY</code> is <co
 >de>NaN</code>.
36      </li>
51      </li>37      <li>
52      <li>Any negative value, including NEGATIVE_INFINITY, multip38        <code>NEGATIVE_INFINITY</code>, divided by any negative v
>lied by NEGATIVE_INFINITY is POSITIVE_INFINITY.>alue except <code>NEGATIVE_INFINITY</code>, is <code>POSITIVE_INF
 >INITY</code>.
39      </li>
53      </li>40      <li>
54      <li>Zero multiplied by NEGATIVE_INFINITY is NaN.41        <code>NEGATIVE_INFINITY</code>, divided by any positive v
 >alue except <code>POSITIVE_INFINITY</code>, is <code>NEGATIVE_INF
 >INITY</code>.
42      </li>
55      </li>43      <li>
56      <li>NaN multiplied by NEGATIVE_INFINITY is NaN.
57      </li>
58      <li>NEGATIVE_INFINITY, divided by any negative value except
> NEGATIVE_INFINITY, is POSITIVE_INFINITY. 
59      </li>
60      <li>NEGATIVE_INFINITY, divided by any positive value except
> POSITIVE_INFINITY, is NEGATIVE_INFINITY. 
61      </li>
62      <li>NEGATIVE_INFINITY, divided by either NEGATIVE_INFINITY 44        <code>NEGATIVE_INFINITY</code>, divided by either <code>N
>or POSITIVE_INFINITY, is NaN.>EGATIVE_INFINITY</code> or <code>POSITIVE_INFINITY</code>, is <co
 >de>NaN</code>.
n64      <li>Any number divided by NEGATIVE_INFINITY is Zero.n46      <li>Any number divided by <code>NEGATIVE_INFINITY</code> is
 > zero.
n71      You might use the <code>Number.NEGATIVE_INFINITY</code> pron53      You might use the <code>Number.NEGATIVE_INFINITY</code> pro
>perty to indicate an error condition that returns a finite number>perty to indicate an error condition that returns a finite number
> in case of success. Note, however, that <a href="/en-US/docs/Jav> in case of success. Note, however, that {{jsxref("Global_Objects
>aScript/Reference/Global_Objects/isFinite" title="JavaScript/Refe>/isFinite", "isFinite")}} would be more appropriate in such a cas
>rence/Global_Objects/isFinite">isFinite</a> would be more appropr>e.
>iate in such a case. 
nn68    <h2 id="Specifications">
69      Specifications
70    </h2>
71    <table class="standard-table">
72      <tbody>
73        <tr>
74          <th scope="col">
75            Specification
76          </th>
77          <th scope="col">
78            Status
79          </th>
80          <th scope="col">
81            Comment
82          </th>
83        </tr>
84        <tr>
85          <td>
86            ECMAScript 1st Edition. Implemented in JavaScript 1.1
87          </td>
88          <td>
89            Standard
90          </td>
91          <td>
92            Initial definition.
93          </td>
94        </tr>
95        <tr>
96          <td>
97            {{SpecName('ES6', '#sec-number.negative_infinity', 'N
 >umber.NEGATIVE_INFINITY')}}
98          </td>
99          <td>
100            {{Spec2('ES6')}}
101          </td>
102          <td>
103            Latest definition.
104          </td>
105        </tr>
106      </tbody>
107    </table>
108    <h2 id="Browser_compatibility">
109      Browser compatibility
110    </h2>
111    <div>
112      {{CompatibilityTable}}
113    </div>
114    <div id="compat-desktop">
115      <table class="compat-table">
116        <tbody>
117          <tr>
118            <th>
119              Feature
120            </th>
121            <th>
122              Chrome
123            </th>
124            <th>
125              Firefox (Gecko)
126            </th>
127            <th>
128              Internet Explorer
129            </th>
130            <th>
131              Opera
132            </th>
133            <th>
134              Safari (WebKit)
135            </th>
136          </tr>
137          <tr>
138            <td>
139              Basic support
140            </td>
141            <td>
142              {{CompatVersionUnknown}}
143            </td>
144            <td>
145              {{CompatVersionUnknown}}
146            </td>
147            <td>
148              {{CompatVersionUnknown}}
149            </td>
150            <td>
151              {{CompatVersionUnknown}}
152            </td>
153            <td>
154              {{CompatVersionUnknown}}
155            </td>
156          </tr>
157        </tbody>
158      </table>
159    </div>
160    <div id="compat-mobile">
161      <table class="compat-table">
162        <tbody>
163          <tr>
164            <th>
165              Feature
166            </th>
167            <th>
168              Android
169            </th>
170            <th>
171              Firefox Mobile (Gecko)
172            </th>
173            <th>
174              IE Phone
175            </th>
176            <th>
177              Opera Mobile
178            </th>
179            <th>
180              Safari Mobile
181            </th>
182          </tr>
183          <tr>
184            <td>
185              Basic support
186            </td>
187            <td>
188              {{CompatVersionUnknown}}
189            </td>
190            <td>
191              {{CompatVersionUnknown}}
192            </td>
193            <td>
194              {{CompatVersionUnknown}}
195            </td>
196            <td>
197              {{CompatVersionUnknown}}
198            </td>
199            <td>
200              {{CompatVersionUnknown}}
201            </td>
202          </tr>
203        </tbody>
204      </table>
205    </div>
tt210      <li>{{jsxref("Global_Objects/Number/POSITIVE_INFINITY", "PO
 >SITIVE_INFINITY")}}
90      <li>211      </li>
91        <a href="/en-US/docs/JavaScript/Reference/Global_Objects/212      <li>{{jsxref("Global_Objects/Infinity", "Infinity")}}
>Infinity" title="JavaScript/Reference/Global_Properties/Infinity" 
>>Infinity</a>, <a href="/en-US/docs/JavaScript/Reference/Global_O 
>bjects/Number/POSITIVE_INFINITY" title="JavaScript/Reference/Glob 
>al_Objects/Number/POSITIVE_INFINITY">POSITIVE_INFINITY</a>, <a hr 
>ef="/en-US/docs/JavaScript/Reference/Global_Objects/isFinite" tit 
>le="JavaScript/Reference/Global_Objects/isFinite">isFinite</a> 
213      </li>
214      <li>{{jsxref("Global_Objects/isFinite", "isFinite")}}

Back to History