The number 840022 (eight hundred forty thousand twenty-two) is written in Roman numerals as follows: DCCCXLXXII