If you want to know to compare two values with tolerance then subtract them and see if the result is within your tolerance.
public function within(x:Number, y:Number, tolerance:Number):Boolean { var difference:Number = x - y; return difference <= tolerance && difference >= - tollerance; } HTH, Sam ----------------------------------------------------------------- We're Hiring! Seeking passionate Flex, C#, or C++ (RTSP, H264) developer in the Washington D.C. Contact [EMAIL PROTECTED] On Mon, Jul 14, 2008 at 3:07 PM, fumeng5 <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to compare 3 points but because of double precision in AS3 > i'm running into some issues with trailing digits causing the numbers > to not be equal, i.e. 1.25 != 1.2499999999999 > > >