formatCurrency
Formats a number as currency with locale-specific formatting.
amount(required): numeric amountcurrency(optional): ISO 4217 currency code (e.g., "USD", "EUR")locale(optional): locale for formatting (e.g., "en-US", "de-DE")
bash
echo '{"amount": 1234.5}' | utlx -e 'formatCurrency($input.amount, "USD", "en-US")'
# "$1,234.50"utlx
{
price: formatCurrency($input.total, "EUR", "de-DE"),
usd: formatCurrency($input.amount, "USD", "en-US")
}