in reply to Surviving 'Illegal division by zero'
If you have the POSIX module you may use the DBL_EPSILON constant that it defines:
Very useful in dsp to write machine independent code. You dont't want to find it all breaks when you port it somewhere else. Although its messier in just one place Abigails choice of overloading the operator is probably the most elegant general solution imo.use POSIX; use constant epsilon => 100 * DBL_EPSILON;
|
|---|