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 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
fail.
When I use a tool like wsstudio2 and copy and paste the long version, it
works fine.

Any ideas on how to fix this?
greetz
JC
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


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 Int64.
If i cast the number i get from the service to a string, my string reads
1e+21

Any ideas?
JC


On 11/6/06, Chris Benjaminsen [EMAIL PROTECTED] wrote:


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 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
 fail.
 When I use a tool like wsstudio2 and copy and paste the long version, it
 works fine.

 Any ideas on how to fix this?
 greetz
 JC
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


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 find that the number is not changed.
i.e.
var number1 = 10;
var number2 = 11;

trace(number1 == number2); // traces 'true'

depending on how you're communicating with the server, you may have to
stream it in as binary data and write your own 'bigint' (like java)
class to parse it, or use a server side script to parse it into a
string format for flash.

Jonathan

On 11/6/06, Hans Wichman [EMAIL PROTECTED] wrote:

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 Int64.
If i cast the number i get from the service to a string, my string reads
1e+21

Any ideas?
JC


On 11/6/06, Chris Benjaminsen [EMAIL PROTECTED] wrote:

 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 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
  fail.
  When I use a tool like wsstudio2 and copy and paste the long version, it
  works fine.
 
  Any ideas on how to fix this?
  greetz
  JC
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


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 your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


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:

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 your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] preventing scientific notation

2006-11-06 Thread Mike Keesey
AS3.0 has Number.toFixed():
http://livedocs.macromedia.com/flex/2/langref/Number.html#toFixed()

Of course, that probably doesn't help you
―
Mike Keesey

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of 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 a little way to go before i
max
 out:).
 
 Threading the number as a string isnt possible, since the webservice
 interface requires Int64.
 If i cast the number i get from the service to a string, my string
 reads
 1e+21
 
 Any ideas?
 JC
 
 
 On 11/6/06, Chris Benjaminsen [EMAIL PROTECTED] wrote:
 
  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 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
   fail.
   When I use a tool like wsstudio2 and copy and paste the long
version,
 it
   works fine.
  
   Any ideas on how to fix this?
   greetz
   JC
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] preventing scientific notation

2006-11-06 Thread Hans Wichman

Hi,
thanks all, so lemme get this straight, there is no way im gonna be able to
provide a very large 64bit integer to a webservice.
That's not good:). Ok well maybe i can get the developer to return/accept 2
32bit parts then. *twiddling thumbs*

Thanks again!
JC




On 11/6/06, Mike Keesey [EMAIL PROTECTED] wrote:


AS3.0 has Number.toFixed():
http://livedocs.macromedia.com/flex/2/langref/Number.html#toFixed()

Of course, that probably doesn't help you
―
Mike Keesey

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of 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 a little way to go before i
max
 out:).

 Threading the number as a string isnt possible, since the webservice
 interface requires Int64.
 If i cast the number i get from the service to a string, my string
 reads
 1e+21

 Any ideas?
 JC


 On 11/6/06, Chris Benjaminsen [EMAIL PROTECTED] wrote:
 
  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 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
   fail.
   When I use a tool like wsstudio2 and copy and paste the long
version,
 it
   works fine.
  
   Any ideas on how to fix this?
   greetz
   JC
   ___
   Flashcoders@chattyfig.figleaf.com
   To change your subscription options or search the archive:
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
   Brought to you by Fig Leaf Software
   Premier Authorized Adobe Consulting and Training
   http://www.figleaf.com
   http://training.figleaf.com
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com