"Don" <nos...@nospam.com> ÐÏ×?ÄÏÍÉ×/ÐÏ×?ÄÏÍÉÌÁ × ÎÏ×ÉÎÁÈ:i9mhvd$2l5...@digitalmars.com... > Lars T. Kyllingstad wrote: > in all the tricky special cases. Unlike a naive relative equality test > involving divisions, it doesn't fail for values near zero. (I _think_ > that's the reason why people think you need an absolute equality test as > well). > And it's fast. No divisions, no poorly predictable branches.
Just wonder. I always used relative equality in form: fabs(a-b) > eps * fabs(a) is therew something wrong in that, except maybe zero a?