approxEqual() has fooled me for a long time...

Aelxx aelxx at yandex.ru
Wed Oct 20 10:58:46 PDT 2010


>"Andrei Alexandrescu" wrote:
> if (a == within(1e-5) == b) { ... }

For me it looks strange. I think something like approxEqual is readable more 
clear here. 




More information about the Digitalmars-d mailing list