Skip to content

Commit

Permalink
Update include/stellar/utils/fraction.hpp
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Gene Gottlieb <[email protected]>
  • Loading branch information
eaasna and SGSSGene authored Apr 2, 2024
1 parent 8090ae5 commit 5c996b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/stellar/utils/fraction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ struct fraction
static fraction from_double_with_limit(long double value, uint32_t const precision_limit)
{
// Applying a lower bound to the error rate because values close to 0 increase runtime dramatically
if (abs(value) < (1.0 / (precision_limit * 1.05)))
if (std::abs(value) < (1.0 / (precision_limit * 1.05)))
{
return fraction(precision_limit);
}
Expand Down

0 comments on commit 5c996b9

Please sign in to comment.