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