Skip to content

Commit fa82901

Browse files
committed
improve
1 parent f65d65b commit fa82901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cp-algo/math/decimal.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ namespace cp_algo::math {
102102
decimal d(bigint<base>(lead), -ssize(value.digits));
103103
size_t cur = 2;
104104
decimal amend = decimal(1) - trunc(cur) * d;
105-
while(-amend.magnitude() <= precision) {
105+
while(-amend.magnitude() < precision) {
106106
d += d * amend;
107107
cur = 2 * (1 - amend.magnitude());
108108
d = d.trunc(cur);

0 commit comments

Comments
 (0)