Merge pull request #6268 from afabri/Polynomial-precision-GF

Set precision of the ostringstream
This commit is contained in:
Laurent Rineau 2022-02-02 16:36:13 +01:00
commit a489c93b36
1 changed files with 1 additions and 0 deletions

View File

@ -298,6 +298,7 @@ void io() {
// successful re-reading of output
POLY p(NT(-3), NT(5), NT(0), NT(0), NT(-7), NT(9)), q;
std::ostringstream os;
os.precision(17);
os << p;
std::istringstream is(os.str());
is >> q;