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