Update number/fractional.cc
Signed-off-by: subcrip <contact@subc.rip>
This commit is contained in:
parent
99e23be0e8
commit
42f07a4325
|
@ -33,9 +33,7 @@ struct fractional {
|
||||||
string right(point, s.end());
|
string right(point, s.end());
|
||||||
if (right.size()) right.erase(right.begin());
|
if (right.size()) right.erase(right.begin());
|
||||||
T divisor = 1;
|
T divisor = 1;
|
||||||
for (auto&& _ : right) {
|
for (auto&& _ : right) divisor *= 10;
|
||||||
divisor *= 10;
|
|
||||||
}
|
|
||||||
T l, r;
|
T l, r;
|
||||||
stringstream(left) >> l;
|
stringstream(left) >> l;
|
||||||
stringstream(right) >> r;
|
stringstream(right) >> r;
|
||||||
|
|
Loading…
Reference in New Issue