[flexcoders] number to big for AS

2006-12-06 Thread Yaison Alcantara
hi coders;
I made an app that does a lot of matematical functions and handlers a 
lot numbers, but there is an error when the app multiplies some int. 
It have to return the number -2147408896 but it returns 2147408896.


what int is big for AS3 to handle?



RE: [flexcoders] number to big for AS

2006-12-06 Thread Gordon Smith
The range of an int is from int.MINVALUE (-2147483648 or -2^31) to
int.MAXVALUE (2147483647 or 2^31 - 1).

 

The Number class can store larger integers.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Yaison Alcantara
Sent: Wednesday, December 06, 2006 2:52 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] number to big for AS

 

hi coders;
I made an app that does a lot of matematical functions and handlers a 
lot numbers, but there is an error when the app multiplies some int. 
It have to return the number -2147408896 but it returns 2147408896.

what int is big for AS3 to handle?

 



Re: [flexcoders] number to big for AS

2006-12-06 Thread Maximilian Nyman

int.MAX_VALUE

/Max

On 12/7/06, Yaison Alcantara [EMAIL PROTECTED] wrote:


  hi coders;
I made an app that does a lot of matematical functions and handlers a
lot numbers, but there is an error when the app multiplies some int.
It have to return the number -2147408896 but it returns 2147408896.

what int is big for AS3 to handle?