The number 998042 (nine hundred ninety-eight thousand forty-two) is written in Roman numerals as follows: CMXCVIIIXLII