{$ ... | number}
Number filter allows you to format numbers. It uses thenumber_format function and can take zero to three arguments: 1) number of decimal places, 2) decimal separator and 3) thousand separator.
The default argument values are: places: 0 decimal sep.: . thousand sep: ,
{$yourvar|number}
Result → 1,235 (last digit rounded up automatically)
{$yourvar|number:2,',','.'}
result → 1.234,57 (German number format with 2 decimals, last decimal is rounded up automatically)