format_thousands
Template filter to format a number so that it's thousands are separated by commas. {{ number|format_thousands }}
- format
- string
- comma
- decimal
- number
- thousands
- float
Template filter to format a number so that it's thousands are separated by commas. {{ number|format_thousands }}
Converts an integer or floating-point number or a string to a string containing the delimiter character (default comma) after every delimeter_count digits (by default 3 digits)
**This is the converter, just put it as a filter and call it with a float number.** * So, if you have a template variable **{{ my_number }}** that is "3096.44". * It will convert to "3.096,44" using the filter **{{ my_number|numBR }}**.