Formats a number as a currency string