Salome HOME
bos #26594 Failed KERNEL test: fix typemap for swig 4x
[modules/yacs.git] / src / yacsloader / xmlrpcParsers.cxx
index fdff9c519d210f2f0227d2943d09d30a3bf810e0..464d4b037f80f70b6fd18be2966add59e13701d7 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2006-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2006-2021  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -20,6 +20,7 @@
 #include "xmlrpcParsers.hxx"
 #include "dataParsers.hxx"
 #include <sstream>
+#include <iomanip>
 
 namespace YACS
 {
@@ -50,7 +51,7 @@ static std::string t4[]={"string","objref","double","int","boolean","array","str
   void valuetypeParser::double_ (const double& d)
     {
       std::ostringstream os;
-      os << "<double>"<< d<< "</double>";
+      os << "<double>"<< std::setprecision(16) << d<< "</double>";
       _data=os.str();
       _v.push_back(_data);
     }