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

dennis luehring dl.soluz at gmx.net
Wed Oct 20 08:51:46 PDT 2010


> double a, b;
> ...
> if (a == within(1e-5) == b) { ... }

i like that idea - should help alot

how should that thing be called - type-dependent-operator-behavior? is 
that something like an extension operator?


More information about the Digitalmars-d mailing list