Performs equivalent check of std::fabs(lhs - rhs) <= margin But without the subtraction to allow for INFINITY in comparison
| 5948 | // Performs equivalent check of std::fabs(lhs - rhs) <= margin |
| 5949 | // But without the subtraction to allow for INFINITY in comparison |
| 5950 | bool marginComparison(double lhs, double rhs, double margin) { |
| 5951 | return (lhs + margin >= rhs) && (rhs + margin >= lhs); |
| 5952 | } |
| 5953 | |
| 5954 | } |
| 5955 |
no outgoing calls
no test coverage detected