We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83b6ce9 commit d45056fCopy full SHA for d45056f
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/IfcWrite.h"
24
#include "../ifcparse/IfcWritableEntity.h"
@@ -211,7 +213,7 @@ class StringBuilderVisitor : public boost::static_visitor<void> {
211
213
// REAL = [ SIGN ] DIGIT { DIGIT } "." { DIGIT } [ "E" [ SIGN ] DIGIT { DIGIT } ] .
212
214
std::string format_double(const double& d) {
215
std::ostringstream oss;
- oss << d;
216
+ oss << std::setprecision(16) << d;
217
const std::string str = oss.str();
218
oss.str("");
219
std::string::size_type e = str.find('e');
0 commit comments