RE: [Flashcoders] Number -- how good for use as an integer?

2007-03-06 Thread Douglas Pearson
[mailto:[EMAIL PROTECTED] Sent: Monday, March 05, 2007 4:35 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Number -- how good for use as an integer? Douglas Pearson wrote: Can someone clarify whether Number is actually just a simple wrapper round a double precision

[Flashcoders] Number -- how good for use as an integer?

2007-03-05 Thread Douglas Pearson
Can someone clarify whether Number is actually just a simple wrapper round a double precision floating point value? The reason I'm asking is I'd like to know how accurately Flash can store integers. With AS3 there's a true int type added but in AS2 how reliable is Number at storing and

Re: [Flashcoders] Number -- how good for use as an integer?

2007-03-05 Thread Mick G
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_13989 I think you may have to put some Math.round(); around some of your values just in case. On 3/5/07, Douglas Pearson [EMAIL PROTECTED] wrote: Can someone clarify whether Number is actually just a simple wrapper round a double

Re: [Flashcoders] Number -- how good for use as an integer?

2007-03-05 Thread Jim Cheng
Douglas Pearson wrote: Can someone clarify whether Number is actually just a simple wrapper round a double precision floating point value? Is this a problem with Flash? If so, any solutions? Internally, it's a 32-bit single precision float and doesn't play well if you need arbitrary