From a3af2902efa4b873d66a560c11cbbc51c51f7e9c Mon Sep 17 00:00:00 2001 From: Eivind Kvedalen Date: Fri, 11 Nov 2016 22:40:30 +0100 Subject: [PATCH] Spreadsheet: Save numbers with one more digit. --- src/App/Expression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App/Expression.cpp b/src/App/Expression.cpp index 1bab01b753..6d0e0d8097 100644 --- a/src/App/Expression.cpp +++ b/src/App/Expression.cpp @@ -268,7 +268,7 @@ void NumberExpression::negate() std::string NumberExpression::toString() const { std::stringstream s; - s << std::setprecision(std::numeric_limits::digits10 + 1) << quantity.getValue(); + s << std::setprecision(std::numeric_limits::digits10 + 2) << quantity.getValue(); /* Trim of any extra spaces */ //while (s.size() > 0 && s[s.size() - 1] == ' ')