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:
parent
f362c00739
commit
25828746f3
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user