Skip to content

Commit

Permalink
output 14 decimals for printing scale factors to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Mar 27, 2013
1 parent b5a588f commit 346b37a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Dimension.cpp
Expand Up @@ -368,9 +368,9 @@ std::ostream& operator<<(std::ostream& os, pdal::Dimension const& d)
os << quoted_name.str() << pad.str() <<" -- "<< " size: " << tree.get<boost::uint32_t>("bytesize");

double scale = tree.get<double>("scale");
boost::uint32_t precision = Utils::getStreamPrecision(scale);
// boost::uint32_t precision = Utils::getStreamPrecision(scale);
os.setf(std::ios_base::fixed, std::ios_base::floatfield);
os.precision(precision);
os.precision(14);
os << " scale: " << scale;

double offset = tree.get<double>("offset");
Expand Down

0 comments on commit 346b37a

Please sign in to comment.