1 does not equal 2 If a=b, and then you divide by (a-b), then you've divided by zero. Perhaps that give you the result you need? Regards, rr