The number 900842 (nine hundred thousand eight hundred forty-two) is written in Roman numerals as follows: CMDCCCXLII