mirror of https://github.com/CGAL/cgal
Merge pull request #6268 from afabri/Polynomial-precision-GF
Set precision of the ostringstream
This commit is contained in:
commit
a489c93b36
|
|
@ -298,6 +298,7 @@ void io() {
|
||||||
// successful re-reading of output
|
// successful re-reading of output
|
||||||
POLY p(NT(-3), NT(5), NT(0), NT(0), NT(-7), NT(9)), q;
|
POLY p(NT(-3), NT(5), NT(0), NT(0), NT(-7), NT(9)), q;
|
||||||
std::ostringstream os;
|
std::ostringstream os;
|
||||||
|
os.precision(17);
|
||||||
os << p;
|
os << p;
|
||||||
std::istringstream is(os.str());
|
std::istringstream is(os.str());
|
||||||
is >> q;
|
is >> q;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue