The number 987858 (nine hundred eighty-seven thousand eight hundred fifty-eight) is written in Roman numerals as follows: CMLXXXVIIDCCCLVIII