CASE: display values of accounts in ones, thousands or millions

If we create an account-drop ( a collection that gathers all my selected accounts in it ), like this f.i. :

{% assign accounts = #61 %} 

we now have an option to display any value, rounded as ones, thousands or millions. Just add the method return_values_in_ones, return_values_in_thousands, return_values_in_millions to the accounts-drop accounts.

An example:

{% stripnewlines %}
| Acc.Nbr
| Acc.Descr.
| Acc.Value
{% newline %}
|----15%----
|----50%----
|----15%---:
{% for acc in accounts %}
{% newline %}
| {{ acc.number }}
| {{ acc.name }}
| {{ acc.value | currency }}
{% endfor %}
{% endstripnewlines %} 

It’ll display this, with no rounded values:
13

If we add the method return_values_in_thousands to the accounts-drop accounts, it will display any account that has a rounded value in thousands:

{% stripnewlines %}
| Acc.Nbr
| Acc.Descr.
| Acc.Value
{% newline %}
|----15%----
|----50%----
|----15%---:
{% for acc in accounts.return_values_in_thousands %}
{% newline %}
| {{ acc.number }}
| {{ acc.name }}
| {{ acc.value | currency }}
{% endfor %}
{% endstripnewlines %}

Output:
45