1
0
Fork 0

Update number/fractional.cc

Signed-off-by: subcrip <contact@subc.rip>
This commit is contained in:
subcrip 2024-11-27 15:25:54 +00:00
parent 99e23be0e8
commit 42f07a4325
1 changed files with 1 additions and 3 deletions

View File

@ -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;