You can apply long division using the numbers without the commas, and when you have the answer:
-sum the number of decimals of the divider and the divide.
- in the number of the result you count from the end of the number, the number of decimals given in the last step, and you put the comma there.