Formats a number to a string, with comma separation every 3 digits
type of number
number to be formatted
string in which to store the formatted number
formatted string
See Implementation
Formats a number to a string, with comma separation every 3 digits