The number 945987 (nine hundred forty-five thousand nine hundred eighty-seven) is written in Roman numerals as follows: CMXLVCMLXXXVII