The number 842987 (eight hundred forty-two thousand nine hundred eighty-seven) is written in Roman numerals as follows: DCCCXLIICMLXXXVII