998.4e14 mm to km
A km is much bigger than a mm so there will be a lot less of them so you will be dividing.
$$\div\;\by\;\;1000\;\;to\;get\;metres\\\\ then\\\\ \;\;\div \;\;by\;1000\; again\; to\;get\;km$$