[Flashcoders] preventing scientific notation

2006-11-06 Thread Hans Wichman
Hi list, i need to talk to webservices which pass me back very large db id's, which im using again to request more info. However when i do (for example): var b:Number = 10; trace (b); it prints 1e+21 Now when I use this value as an argument to this webservice it seems to

Re: [Flashcoders] preventing scientific notation

2006-11-06 Thread Chris Benjaminsen
Hi Hans The numbers you are trying to store are way to large for Flash to handle as a number. If you however just thread the numbers as strings it should work perfectly. /Chris Hans Wichman wrote: Hi list, i need to talk to webservices which pass me back very large db id's, which im

Re: [Flashcoders] preventing scientific notation

2006-11-06 Thread Hans Wichman
Hi Chris, thanks for your reply. According to the manual flash should be able to handle numbers up to 1.79769313486232e+308? Mine is 1e+21 so it seems i should have a little way to go before i max out:). Threading the number as a string isnt possible, since the webservice interface requires

Re: [Flashcoders] preventing scientific notation

2006-11-06 Thread Jonathan Fung
That may be true, but flash and any other program is still limited by the IEEE floating point specs double precision limits. Flash cannot internally represent 21 digits without resorting to scientific notation. If you add a stray '1' to your 21 digit number as the least significant digit you'll

RE: [Flashcoders] preventing scientific notation

2006-11-06 Thread Merrill, Jason
According to the manual flash should be able to handle numbers up to Don't believe everything you read in the help docs. ;) Jason Merrill Bank of America Learning Organizational Effectiveness ___ Flashcoders@chattyfig.figleaf.com To change

Re: [Flashcoders] preventing scientific notation

2006-11-06 Thread Jonathan Fung
oops... i forgot to mention (and the above would be confusing without), 21 digits exceeds the maximum representable in 32 bits afterwhich flash resorts to floating point. (flash doesnt support int64 apparently, otherwise you'd have no problems) On 11/6/06, Merrill, Jason [EMAIL PROTECTED] wrote:

RE: [Flashcoders] preventing scientific notation

2006-11-06 Thread Mike Keesey
, November 06, 2006 9:42 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] preventing scientific notation Hi Chris, thanks for your reply. According to the manual flash should be able to handle numbers up to 1.79769313486232e+308? Mine is 1e+21 so it seems i should have a little way to go

Re: [Flashcoders] preventing scientific notation

2006-11-06 Thread Hans Wichman
Sent: Monday, November 06, 2006 9:42 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] preventing scientific notation Hi Chris, thanks for your reply. According to the manual flash should be able to handle numbers up to 1.79769313486232e+308? Mine is 1e+21 so it seems i should have