Overview
Theformat-currency transformation formats a number as a currency value using the specified currency code and locale.
Syntax
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
variable | number | Yes | The number to format as currency |
currency | string | Yes | The currency code (e.g., "EUR", "USD", "GBP") |
locale | string | No | The locale for formatting (e.g., "en-US", "fr-FR"). Defaults to "en-US" |
minDecimal | number | No | Minimum number of decimal places |
maxDecimal | number | No | Maximum number of decimal places |
Examples
For formatting with a locale from a variable, see Format Currency with Locale Variable.
For formatting with both locale and currency from variables, see Format Currency with Locale and Currency Variables.