formatted output for simple division

Not a great solution. What if number given is larger than a billion?
Tried counting by threes in a string (put a comma every three
characters if length is greater than 3) but this method has yet to work.