diff options
Diffstat (limited to 'src/debug.cpp')
-rw-r--r-- | src/debug.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/debug.cpp b/src/debug.cpp index 1014d6e..3b92131 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -23,6 +23,7 @@ #include <ctime> #include <fstream> #include <iostream> +#include <iomanip> #include <string> #include <sys/stat.h> #include <vector> @@ -162,7 +163,7 @@ void write(const char *s, const char *msg) { void write(const double d, const char *msg) { if (!is_debug_data_mode()) return; - cout << d << ": " << msg << endl; + cout << std::setprecision(3) << d << ": " << msg << endl; } void write(const gsl_vector *v, const char *msg) { |