| 4648 | } |
| 4649 | |
| 4650 | bool Approx::equalityComparisonImpl(const double other) const { |
| 4651 | // First try with fixed margin, then compute margin based on epsilon, scale and Approx's value |
| 4652 | // Thanks to Richard Harris for his help refining the scaled margin value |
| 4653 | return marginComparison(m_value, other, m_margin) || marginComparison(m_value, other, m_epsilon * (m_scale + std::fabs(m_value))); |
| 4654 | } |
| 4655 | |
| 4656 | } // end namespace Detail |
| 4657 |
no test coverage detected