The number 240542 (two hundred forty thousand five hundred forty-two) is written in Roman numerals as follows: CCXLDXLII