Skip to content

Commit

Permalink
Do not use an inexact SQRT if an exact one exists
Browse files Browse the repository at this point in the history
  • Loading branch information
MaelRL committed Dec 10, 2024
1 parent 5ece393 commit 3814220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Weights/include/CGAL/Weights/internal/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Default_sqrt
public:
FT operator()(const FT value) const
{
return static_cast<FT>(CGAL::sqrt(CGAL::to_double(CGAL::abs(value))));
return CGAL::approximate_sqrt(CGAL::abs(value));
}
};

Expand Down

0 comments on commit 3814220

Please sign in to comment.