summaryrefslogtreecommitdiff
path: root/src/value.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-01-08 17:30:22 (GMT)
committerMarius Kintel <marius@kintel.net>2012-01-08 17:30:22 (GMT)
commite271e958dcb09bfa2e02866e87a88a12c7464f91 (patch)
tree4243e75f3bd5d84d3a7fd77d25aedaa0ca45f31b /src/value.cc
parenta5d3086dda34525c0a2529bb778590ff4f88e6db (diff)
Force test output to fixed notation, otherwise the clamping will give wrong results for output in scientific notation
Diffstat (limited to 'src/value.cc')
-rw-r--r--src/value.cc1
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);
contact: Jan Huwald // Impressum