diff --git a/app/models/budget/stats.rb b/app/models/budget/stats.rb index a70c7d754..17824643d 100644 --- a/app/models/budget/stats.rb +++ b/app/models/budget/stats.rb @@ -186,7 +186,7 @@ class Budget def calculate_percentage(fraction, total) percent = fraction / total.to_f - percent.nan? ? 0.0 : (percent * 100).round(2) + percent.nan? ? 0.0 : (percent * 100).round(3) end def supports(supportable) diff --git a/app/views/budgets/stats/show.html.erb b/app/views/budgets/stats/show.html.erb index b9b941307..4c9359595 100644 --- a/app/views/budgets/stats/show.html.erb +++ b/app/views/budgets/stats/show.html.erb @@ -221,7 +221,7 @@ <% end %> - + <%= t("budgets.stats.total").upcase %>