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