The number 945642 (nine hundred forty-five thousand six hundred forty-two) is written in Roman numerals as follows: CMXLVDCXLII