format_currency
Format numeric amounts to localized currency strings (e.g., '£1,234.50') for use in prices, invoices, or emails, by specifying amount, currency code, and locale.
Instructions
USE THIS to format a money amount the way a reader in a locale expects (symbol position, separators) before showing it in a price, invoice or email. e.g. 1234.5 GBP en-GB → '£1,234.50'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | The numeric amount. | |
| currency | No | ISO 4217 currency code (default GBP). | |
| locale | No | BCP-47 locale (e.g. en-GB). Defaults from the currency. |