JavaScript Reference/Javascript Properties/POSITIVE INFINITY

Материал из Web эксперт
Версия от 11:22, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"POSITIVE_INFINITY" Example

   <source lang="javascript">
   

<html> <body> <button onclick="alert(Number.MAX_VALUE);">MAX_VALUE</button> <button onclick="alert(Number.MIN_VALUE);">MIN_VALUE</button> <button onclick="alert(Number.NEGATIVE_INFINITY);">NEGATIVE_INFINITY</button> <button onclick="alert(Number.POSITIVE_INFINITY);">POSITIVE_INFINITY</button> </body> </html>


     </source>
   
  


"POSITIVE_INFINITY" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |Number | +----------------+--------------------------------------------------------------+

     </source>
   
  


"POSITIVE_INFINITY" Syntax and Note

   <source lang="javascript">

Note: Read-only property. A constant that returns infinity.

Syntax:

Number.POSITIVE_INFINITY


     </source>