diff --git a/src/App/Expression.cpp b/src/App/Expression.cpp index d6291040a..69e888d96 100644 --- a/src/App/Expression.cpp +++ b/src/App/Expression.cpp @@ -258,7 +258,7 @@ void NumberExpression::negate() std::string NumberExpression::toString() const { std::stringstream s; - s << quantity.getValue(); + s << std::setprecision(std::numeric_limits::digits10 + 1) << quantity.getValue(); /* Trim of any extra spaces */ //while (s.size() > 0 && s[s.size() - 1] == ' ')