mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-03 21:44:33 +00:00 
			
		
		
		
	XML precision scientific with 16 digits by default
This commit is contained in:
		@@ -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());
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user