if @dashboard_configuration.selected_period?
technical_debt_variation = variation_value(technical_debt)
new_technical_debt_variation = variation_value(new_technical_debt)
- estimated_cleared_technical_debt = (new_technical_debt_variation - technical_debt_variation).to_i if technical_debt_variation && new_technical_debt_variation
+ estimated_cleared_technical_debt = (new_technical_debt_variation - technical_debt_variation).to_f if technical_debt_variation && new_technical_debt_variation
%>
<% if new_technical_debt_variation && new_technical_debt_variation > 0 %>
<br/>
<br/>
<span style="font-weight: bold">
<%= message('widget.rules.removed') -%>
- <span class="varb"><%= number_with_precision(estimated_cleared_technical_debt, :precision => 0) -%></span>
+ <span class="varb"><%= number_with_precision(estimated_cleared_technical_debt, :precision => 1) -%></span>
</span>
<% end %>
<% end %>