From e271e958dcb09bfa2e02866e87a88a12c7464f91 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Sun, 8 Jan 2012 18:30:22 +0100 Subject: Force test output to fixed notation, otherwise the clamping will give wrong results for output in scientific notation 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); -- cgit v0.10.1