Performs equivalent check of std::fabs(lhs - rhs) <= margin But without the subtraction to allow for INFINITY in comparison
| 7549 | // Performs equivalent check of std::fabs(lhs - rhs) <= margin |
| 7550 | // But without the subtraction to allow for INFINITY in comparison |
| 7551 | bool marginComparison(double lhs, double rhs, double margin) { |
| 7552 | return (lhs + margin >= rhs) && (rhs + margin >= lhs); |
| 7553 | } |
| 7554 | |
| 7555 | } |
| 7556 |
no outgoing calls
no test coverage detected