The number 840342 (eight hundred forty thousand three hundred forty-two) is written in Roman numerals as follows: DCCCXLCCCXLII