format_number
Format a number with commas.
Format a variable’s number value with commas, optionally specifying how many decimal places to show.
Sample Usage
{{ cost|format_number:2 }}
This will output the number value of cost
formatted as 37,232.33 (with a comma-thousands-separator and two decimal places).
Parameters
This modifier has one optional parameter, the number of decimal places to display. By default, this will display zero.