The numeric amount to format as currency.
The ISO 4217 currency code (e.g., "USD", "EUR"). Defaults to "USD".
The BCP 47 language tag for locale formatting (e.g., "en-US", "de-DE"). Defaults to "en-US".
A string representing the formatted currency amount.
Formats a number as a localized currency string. Utilizes the built-in Intl.NumberFormat API for robust internationalization support. Falls back to a default format if the provided locale or currency code is invalid.