Skip to content

Commit

Permalink
IsFinite
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin committed Sep 18, 2024
1 parent d361214 commit 2dac877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numerics/double_precision_body.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ template<typename T, typename U>
requires convertible_to_quantity<T> && convertible_to_quantity<U>
struct ComponentwiseComparator<T, U> {
static bool GreaterThanOrEqualOrZero(T const& left, U const& right) {
return Abs(left) >= Abs(right) || left == T{};
return Abs(left) >= Abs(right) || left == T{} || !IsFinite(left);
}
};

Expand Down

0 comments on commit 2dac877

Please sign in to comment.