diff options
author | Marius Kintel <marius@kintel.net> | 2012-01-08 17:30:22 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-01-08 17:30:22 (GMT) |
commit | e271e958dcb09bfa2e02866e87a88a12c7464f91 (patch) | |
tree | 4243e75f3bd5d84d3a7fd77d25aedaa0ca45f31b | |
parent | a5d3086dda34525c0a2529bb778590ff4f88e6db (diff) |
Force test output to fixed notation, otherwise the clamping will give wrong results for output in scientific notation
-rw-r--r-- | src/value.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/value.cc b/src/value.cc index 5ea766c..1dcfa98 100644 --- a/src/value.cc +++ b/src/value.cc @@ -369,6 +369,7 @@ std::string Value::toString() const { std::stringstream tmp; tmp.precision(16); + tmp.setf(std::ios_base::fixed); tmp << this->num; std::string tmpstr = tmp.str(); if (tmpstr.size() > 16) tmpstr.erase(16); |