We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68e60f0 commit 604358bCopy full SHA for 604358b
1 file changed
src/ifcparse/IfcWrite.cpp
@@ -17,6 +17,8 @@
17
* *
18
********************************************************************************/
19
20
+#include <iomanip>
21
+
22
#include "../ifcparse/IfcParse.h"
23
#include "../ifcparse/IfcFile.h"
24
#include "../ifcparse/IfcWrite.h"
@@ -197,7 +199,7 @@ class StringBuilderVisitor : public boost::static_visitor<void> {
197
199
// REAL = [ SIGN ] DIGIT { DIGIT } "." { DIGIT } [ "E" [ SIGN ] DIGIT { DIGIT } ] .
198
200
std::string format_double(const double& d) {
201
std::ostringstream oss;
- oss << d;
202
+ oss << std::setprecision(16) << d;
203
const std::string str = oss.str();
204
oss.str("");
205
std::string::size_type e = str.find('e');
0 commit comments