Performs equivalent check of std::fabs(lhs - rhs) <= margin But without the subtraction to allow for INFINITY in comparison
| 4622 | // Performs equivalent check of std::fabs(lhs - rhs) <= margin |
| 4623 | // But without the subtraction to allow for INFINITY in comparison |
| 4624 | bool marginComparison(double lhs, double rhs, double margin) { |
| 4625 | return (lhs + margin >= rhs) && (rhs + margin >= lhs); |
| 4626 | } |
| 4627 | |
| 4628 | } |
| 4629 |
no outgoing calls
no test coverage detected