How to round number to thousand

numbers need to be formatted with commas
e,g 39276.4 to be as 39,276.4

4000 to be 4,000

length of the number is not fixed… “,” should be in thousand format