Finished up the number formatting function