We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f65d65b commit fa82901Copy full SHA for fa82901
cp-algo/math/decimal.hpp
@@ -102,7 +102,7 @@ namespace cp_algo::math {
102
decimal d(bigint<base>(lead), -ssize(value.digits));
103
size_t cur = 2;
104
decimal amend = decimal(1) - trunc(cur) * d;
105
- while(-amend.magnitude() <= precision) {
+ while(-amend.magnitude() < precision) {
106
d += d * amend;
107
cur = 2 * (1 - amend.magnitude());
108
d = d.trunc(cur);
0 commit comments