What if you use temporary variables?

 

________________________________

From: flexcoders@yahoogroups.com [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

 

Reply via email to