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