Use setprecision for std::cout
[ctsim.git] / libctsim / imagefile.cpp
index 8710e5a002eae10c85804ec1aee911b7c8e66d22..623b4e32c265de5b75abdc46531bab1088b546ab 100644 (file)
@@ -264,6 +264,7 @@ ImageFile::printStatistics (std::ostream& os) const
   if (isComplex())
     os << "Real Component Statistics" << std::endl;
 
+  os << std::setprecision(7);
   os << "   min: " << min << std::endl;
   os << "   max: " << max << std::endl;
   os << "  mean: " << mean << std::endl;