Performs equivalent check of std::fabs(lhs - rhs) <= margin But without the subtraction to allow for INFINITY in comparison
| 5688 | // Performs equivalent check of std::fabs(lhs - rhs) <= margin |
| 5689 | // But without the subtraction to allow for INFINITY in comparison |
| 5690 | bool marginComparison(double lhs, double rhs, double margin) { |
| 5691 | return (lhs + margin >= rhs) && (rhs + margin >= lhs); |
| 5692 | } |
| 5693 | |
| 5694 | } |
| 5695 |
no outgoing calls
no test coverage detected