Skip to content

Commit

Permalink
remove std::abs
Browse files Browse the repository at this point in the history
  • Loading branch information
Popov-Dmitriy-Ivanovich committed Oct 27, 2023
1 parent e2ee3a3 commit 391e222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/model/types/double_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class DoubleType final : public NumericType<Double> {
Double l_val = GetValue(l);
Double r_val = GetValue(r);

if (std::abs(boost::math::relative_difference(l_val, r_val)) <
if (boost::math::relative_difference(l_val, r_val) <
eps_count * std::numeric_limits<model::Double>::epsilon()) {
return CompareResult::kEqual;
}
Expand Down

0 comments on commit 391e222

Please sign in to comment.