What do you get when you trace out the folllowing values?
int.MAX_VALUE - 1290 Math.abs(int.MAX_VALUE - 1290) int.MAX_VALUE - 1284 Math.abs(int.MAX_VALUE - 1284) Gordon Smith Adobe Flex SDK Team ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Friday, June 06, 2008 11:18 AM To: [email protected] Subject: RE: [flexcoders] Math.abs() Limitation? What if you use temporary variables? ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Freiman Sent: Friday, June 06, 2008 9:09 AM To: flexcoders Subject: [flexcoders] Math.abs() Limitation? According to my code the following statement returns true. Math.abs(int.MAX_VALUE - 1290) == Math.abs(int.MAX_VALUE - 1284) I tried converting everything to type Number that didn't help. Getting ride of the abs() makes the calculation work correctly but then I don't have the absolute value. Thoughts? - Daniel Freiman

