Skip to main content

Overview

The format-currency-locale-currency-var transformation formats a number as currency using both locale and currency code provided as variables.

Syntax

format-currency-locale-currency-var(<variable>, <locale-variable>, <currency-variable>)

Parameters

ParameterTypeRequiredDescription
variablenumberYesThe number to format as currency
locale-variablevariableYesThe locale variable (e.g., "en-US", "fr-FR")
currency-variablevariableYesThe currency code variable (e.g., "USD", "EUR")
minDecimalnumberNoMinimum number of decimal places
maxDecimalnumberNoMaximum number of decimal places

Examples

format-currency-locale-currency-var(<variable>, <locale-variable>, <currency-variable>)
format-currency-locale-currency-var(<variable>, <locale-variable>, <currency-variable>, minDecimal=2, maxDecimal=2)