What is the maximum integer value in Flex?

12,350

Solution 1

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

  • Number.MAX_VALUE
  • uint.MAX_VALUE
  • int.MAX_VALUE

(Just trace 'em.)

Solution 2

The largest exact integral value is 2^53, Remember ActionScript is ECMA at heart. Look for the operator ToInt32 for more info on that.

Solution 3

Try casting it to a uint instead of an int

Share:
12,350
Admin
Author by

Admin

Updated on June 04, 2022

Comments

  • Admin
    Admin about 1 year

    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!