Spreadsheet: Save numbers with one more digit.

This commit is contained in:
Eivind Kvedalen 2016-11-11 22:40:30 +01:00 committed by wmayer
parent eb32b3d831
commit a3af2902ef

View File

@ -268,7 +268,7 @@ void NumberExpression::negate()
std::string NumberExpression::toString() const
{
std::stringstream s;
s << std::setprecision(std::numeric_limits<double>::digits10 + 1) << quantity.getValue();
s << std::setprecision(std::numeric_limits<double>::digits10 + 2) << quantity.getValue();
/* Trim of any extra spaces */
//while (s.size() > 0 && s[s.size() - 1] == ' ')