There are #1000# grams in one kilogram, so to convert grams to kilograms, you simply divide the number of grams by #1000#. Technically, this is "unit conversion" and looks like this in fully expanded form:

#100 g * (1 kg)/(1000 g) = (100 g *kg)/(1000 g) = 0.1 kg#