The number 840487 (eight hundred forty thousand four hundred eighty-seven) is written in Roman numerals as follows: DCCCXLCDLXXXVII