# format\_price

Source: https://zotonic.com/docs/1739/format_price

URI: https://zotonic.com/id/1739

Language: en



Show a price with decimals.

Formats integer and float values as a number with two decimals.

For example:

```django
{{ value|format_price }}
```

When the value is the float `12.1` then the output is the list `12.10`.

An undefined price will have the output “-”.

::: {.note title="Note"}
The decimal separator is currently always a dot, independent of the user’s language.
:::

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1739?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1739?language=en>)
