1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-13 15:40:46 +01:00

XML precision scientific with 16 digits by default

This commit is contained in:
Antonin Portelli 2018-05-07 21:04:31 +01:00
parent f362c00739
commit 25828746f3

View File

@ -103,7 +103,8 @@ namespace Grid
{
std::ostringstream os;
os << std::boolalpha << x;
os.precision(16);
os << std::scientific << std::boolalpha << x;
pugi::xml_node leaf = node_.append_child(s.c_str());
leaf.append_child(pugi::node_pcdata).set_value(os.str().c_str());
}