Round numbers instead of truncating
This commit is contained in:
parent
9a2bbcd5c3
commit
fecf8caccf
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ def value(val, pm=False, r=2):
|
|||
return mark_safe("–")
|
||||
_prefix = ""
|
||||
_suffix = " €"
|
||||
_val = formats.number_format(val, r, use_l10n=True, force_grouping=True)
|
||||
_val = formats.number_format(round(val, r), r, use_l10n=True, force_grouping=True)
|
||||
|
||||
if val > 0:
|
||||
if pm:
|
||||
|
|
Loading…
Reference in a new issue