Skip to content

Commit 7b4889d

Browse files
ssg3daothms
authored andcommitted
Update IfcParse.cpp
IfcOpenshell read file, and write file without changes. This round trip introduces truncation noise. It should not hurt to increase the precision to keep this clean.
1 parent 740fcf7 commit 7b4889d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ifcparse/IfcParse.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ namespace {
746746
static std::string format_double(const double& d) {
747747
std::ostringstream oss;
748748
oss.imbue(std::locale::classic());
749-
oss << std::setprecision(std::numeric_limits<double>::digits10) << d;
749+
oss << std::setprecision(std::numeric_limits<double>::max_digits10) << d;
750750
const std::string str = oss.str();
751751
oss.str("");
752752
std::string::size_type e = str.find('e');

0 commit comments

Comments
 (0)