| 156 | // they are equal NANs. Which is not necessarily desireable behaviour.) |
| 157 | |
| 158 | static inline bool Equal(const double x, const double y, const double max = 1e-7) |
| 159 | { |
| 160 | return ABS(x-y) < max; |
| 161 | } |
| 162 | |
| 163 | static inline bool IsZero(const double x, const double max = 1e-7) |
| 164 | { |
no test coverage detected