# $field->toFormattedPrice()

> Convert field to formatted price

- See also: `/guide/configuration/localization#number-formatting`
- Source: `index.php#L109` <https://github.com/wagnerwagner/merx/blob/2.0.0-alpha.11/index.php#L109>

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$field` | `Kirby\Content\Field` | `–` |
| `$currency` | `null\|string` | `null` |

## Return type

`string`
