Formats a number into a currency string.
The number to convert.
The currency symbol to prefix.
A formatted string like "$5.00"
formatCurrency(10) // "$10" Copy
formatCurrency(10) // "$10"
Formats a number into a currency string.