> ## Documentation Index
> Fetch the complete documentation index at: https://reportana.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# number_format

### Introduction

The `number_format` filter is used to format numbers according to a specific number of decimal places, thousands separators, and decimal separators. It is useful for displaying numeric values in a standardized way, such as prices or quantities, in a user-friendly interface.

### Example of Use

Example of how to use the `number_format` filter to format a number with two decimal places, using a comma as the thousands separator and a dot as the decimal separator:

```twig theme={null}
{{ 1234567.89|number_format(2, '.', ',') }}
```

### Output Example of the Code

<img src="https://mintcdn.com/reportana/Jha6odPLZMMTun1e/numberformat-en.png?fit=max&auto=format&n=Jha6odPLZMMTun1e&q=85&s=657e2c6e806582c90675e32ec3a3f8f7" alt="Result of `number_format` Filter" width="836" height="289" data-path="numberformat-en.png" />
