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