From 42f07a4325120c83d0052c90ca44b2334b857dd3 Mon Sep 17 00:00:00 2001 From: subcrip Date: Wed, 27 Nov 2024 15:25:54 +0000 Subject: [PATCH] Update number/fractional.cc Signed-off-by: subcrip --- number/fractional.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/number/fractional.cc b/number/fractional.cc index 62d7db8..1f42c47 100644 --- a/number/fractional.cc +++ b/number/fractional.cc @@ -33,9 +33,7 @@ struct fractional { string right(point, s.end()); if (right.size()) right.erase(right.begin()); T divisor = 1; - for (auto&& _ : right) { - divisor *= 10; - } + for (auto&& _ : right) divisor *= 10; T l, r; stringstream(left) >> l; stringstream(right) >> r;