Actionscript - What is the maximum integer value in Flex

De openkb
Aller à : Navigation, rechercher

Sommaire

Questions

I was trying to display a number: 2893604342.00. But, when i am displaying it it is displayed as: -2893604342.

Following is the code snippet ...

avg += int(totalData[i][col.dataField]); 

I have even replaced it with Number, but it s still showing the same negative number.

Please let me know whether there is any problem with int or Number!

Answers

The maximum values are accessible through each numeric type s static properties.

Number.MAX_VALUE, uint.MAX_VALUE, and int.MAX_VALUE.

(Just trace em.)

Source

License : cc by-sa 3.0

http://stackoverflow.com/questions/1236094/what-is-the-maximum-integer-value-in-flex

Related

Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Outils