The number 842540 (eight hundred forty-two thousand five hundred forty) is written in Roman numerals as follows: DCCCXLIIDXL