The number 940342 (nine hundred forty thousand three hundred forty-two) is written in Roman numerals as follows: CMXLCCCXLII