The number 240842 (two hundred forty thousand eight hundred forty-two) is written in Roman numerals as follows: CCXLDCCCXLII