The number 940542 (nine hundred forty thousand five hundred forty-two) is written in Roman numerals as follows: CMXLDXLII