Skip to content

Commit

Permalink
Spreadsheet: Save numbers with one more digit.
Browse files Browse the repository at this point in the history
  • Loading branch information
eivindkv authored and wwmayer committed Dec 15, 2016
1 parent eb32b3d commit a3af290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App/Expression.cpp
Expand Up @@ -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] == ' ')
Expand Down

0 comments on commit a3af290

Please sign in to comment.