| 878 | } |
| 879 | |
| 880 | bool equalsFloatingPointWithEpsilon(const variant& a, const variant& b) { |
| 881 | if (a.isNull() or b.isNull()) { |
| 882 | return false; |
| 883 | } |
| 884 | |
| 885 | if (a.kind() == TypeKind::REAL) { |
| 886 | return equalsFloatingPointWithEpsilonTyped<TypeKind::REAL, float>(a, b); |
| 887 | } else { |
| 888 | BOLT_CHECK_EQ(a.kind(), TypeKind::DOUBLE); |
| 889 | return equalsFloatingPointWithEpsilonTyped<TypeKind::DOUBLE, double>(a, b); |
| 890 | } |
| 891 | } |
| 892 | } // namespace |
| 893 | |
| 894 | bool variant::lessThanWithEpsilon(const variant& other) const { |
no test coverage detected