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