RE: [flexcoders] Rounding error

2008-12-18 Thread Gregor Kiddie
" most of the info out there is in C/C++ but you should be able to pick up something if it doesn't sound too much like overkill." Or Use Alchemy and turn it into AS code. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street,

Re: [flexcoders] Rounding error

2008-12-17 Thread Jules Suggate
wise you can end up with server-side reports > that don't match client-side displays. > > Paul > > - Original Message - > *From:* Jules Suggate > *To:* flexcoders@yahoogroups.com > *Sent:* Wednesday, December 17, 2008 4:36 PM > *Subject:* Re: [flexcoders] Roundi

Re: [flexcoders] Rounding error

2008-12-17 Thread Paul Andrews
displays. Paul - Original Message - From: Jules Suggate To: flexcoders@yahoogroups.com Sent: Wednesday, December 17, 2008 4:36 PM Subject: Re: [flexcoders] Rounding error Valdhor already gave you all the info you need, but I like the sound of my own fingers typing.

RE: [flexcoders] Rounding error

2008-12-17 Thread Kenneth Sutherland
.com] On Behalf Of Ken Johnson Sent: 17 December 2008 14:16 To: flexcoders@yahoogroups.com Subject: [flexcoders] Rounding error Hi Everyone - Given the following code: var num1:Number = 0.72; var num2:Number = 0.198; var num3:Number; num3 = num1; num3 += num2; I would expect num3 to eq

Re: [flexcoders] Rounding error

2008-12-17 Thread Jules Suggate
Valdhor already gave you all the info you need, but I like the sound of my own fingers typing. I also like to procrastinate, so I'm in heaven right now :p - Some numbers that are easy to represent in decimal are hard to represent in binary, just as some numbers that are easy to represent in

Re: [flexcoders] Rounding error

2008-12-17 Thread Maciek Sakrejda
ders@yahoogroups.com Subject: [flexcoders] Rounding error Date: Wed, 17 Dec 2008 14:15:54 - Hi Everyone - Given the following code: var num1:Number = 0.72; var num2:Number = 0.198; var num3:Number; num3 = num1; num3 += num2; I would expect num3 to equal 0.918. Instead, it equals 0.917

[flexcoders] Rounding error

2008-12-17 Thread Ken Johnson
Hi Everyone - Given the following code: var num1:Number = 0.72; var num2:Number = 0.198; var num3:Number; num3 = num1; num3 += num2; I would expect num3 to equal 0.918. Instead, it equals 0.9179. And when I apply a num