| 4474 | } |
| 4475 | |
| 4476 | bool Approx::equalityComparisonImpl(const double other) const { |
| 4477 | // First try with fixed margin, then compute margin based on epsilon, scale and Approx's value |
| 4478 | // Thanks to Richard Harris for his help refining the scaled margin value |
| 4479 | return marginComparison(m_value, other, m_margin) || |
| 4480 | marginComparison(m_value, other, m_epsilon * (m_scale + std::fabs(m_value))); |
| 4481 | } |
| 4482 | |
| 4483 | } // end namespace Detail |
| 4484 |
no test coverage detected