Salome HOME
bos #26594 Failed KERNEL test: fix typemap for swig 4x
[modules/yacs.git] / src / yacsloader / xmlrpcParsers.cxx
index 49ce5ddb8da5b35b48a6ca419f6c9741f39707e0..464d4b037f80f70b6fd18be2966add59e13701d7 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2006-2014  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
@@ -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);
     }