Number NEGATIVE_INFINITY [AS 2] 
Klasa: Number
Kompatybilność: ActionScript 1.0, Flash 5+
Określa wartość IEEE-754 reprezentującą nieskończoność ujemną.
Wartość tej właściwości jest taka sama jak stałej -nieskończoność (-Infinity).
Ujemna nieskończoność jest specjalną numeryczna wartości, która jest zwrócona, kiedy operacja matematyczna lub funkcja zwróci ujemną wartość dłuższą, niż może zostać zaprezentowana.
Listing
var posResult:Number = 1/0;
if (posResult == Number.POSITIVE_INFINITY) {
trace("posResult = "+posResult); // zwróci: posResult = Infinity
}
var negResult:Number = -1/0;
if (negResult == Number.NEGATIVE_INFINITY) {
trace("negResult = "+negResult); // zwróci: negResult = -Infinity
 
        	if (posResult == Number.POSITIVE_INFINITY) {
trace("posResult = "+posResult); // zwróci: posResult = Infinity
}
var negResult:Number = -1/0;
if (negResult == Number.NEGATIVE_INFINITY) {
trace("negResult = "+negResult); // zwróci: negResult = -Infinity
Dodano przez: divix  
Ranga: Administrator serwisu Punktów: 0
Ranga: Administrator serwisu Punktów: 0
Komentarze użytkowników
:: Losowe artykuły 

:: Wymiana linków 
    
	Modowe inspiracje |
        Android Gry i Aplikacje |
        ZaplanujTransport.pl: Przeprowadzki, transport, aukcje |
        Logo dla firmy |
        Change Tires - Car Weather Forecast Reminder |
        Laminas: MVC Framework for PHP |
        IT Books Reviews and Programming: JS, JAVA, PHP, ANDROID, CSS | 
        Katalog roślin |
        Programming articles: JAVA, PHP, C++, Python, JavaScript |
        Kancelaria Adwokacka Łukasz Huszno
        
    

 
  
				

 
                             
 


 
                        
 
		 
	