Formats a number as currency with proper thousands separators
The number to format as currency
Optional
Formatting options or currency code string for backward compatibility
Optional locale for backward compatibility
Formatted currency string
Formats a number as currency with proper thousands separators