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