Format numbers using commas to separate thousands