Performs equivalent check of std::fabs(lhs - rhs) <= margin But without the subtraction to allow for INFINITY in comparison
| 7867 | // Performs equivalent check of std::fabs(lhs - rhs) <= margin |
| 7868 | // But without the subtraction to allow for INFINITY in comparison |
| 7869 | bool marginComparison(double lhs, double rhs, double margin) { |
| 7870 | return (lhs + margin >= rhs) && (rhs + margin >= lhs); |
| 7871 | } |
| 7872 | |
| 7873 | } |
| 7874 |
no outgoing calls
no test coverage detected