round all calculation to 2 digits

This commit is contained in:
2023-02-10 08:59:19 +01:00
parent f1287c3fad
commit 1e6ec919e0
4 changed files with 25 additions and 20 deletions

View File

@@ -22,7 +22,7 @@
<tr>
<td class="{{ item.bg_color }}"><a href="allocation_edit/{{ item.no_cat }}">{{ item.classe }}</a></td>
<td class="text-right">{{ item.pc_cible }} %</td>
<td class="text-right">{{ '{0:0.1f}'.format(item.pc_atteint) }}</td>
<td class="text-right">{{ '{0:0.1f}'.format(item.pc_atteint) }} %</td>
{% if (item.pc_atteint - item.pc_cible) >= 0 %}
<td class="text-right" style="color: green;">{{ '{0:0.1f}'.format(item.pc_ecart) }}</td>
{% else %}
@@ -83,7 +83,7 @@
</div>
<div class="row">
<h3>Mes actifs</h3>
<h2>Mes actifs</h2>
<p>"<i>Diversification is not determined by the number of securities held.</i>"
<a href="http://www.etf.com/sections/index-investor-corner" target="_blank">Larry Swedroe</a></p>