Skip to content

Commit

Permalink
Formula engine: Fix debugger display of decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Mar 24, 2016
1 parent 7f4c04c commit 14d3756
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/formula/formula.cpp
Expand Up @@ -675,7 +675,10 @@ class decimal_expression : public formula_expression {
std::string str() const
{
std::stringstream s;
s << i_ << '.' << f_;
s << i_ << '.';
s.width(3);
s.fill('0');
s << f_;
return s.str();
}
private:
Expand Down

0 comments on commit 14d3756

Please sign in to comment.