The number 940987 (nine hundred forty thousand nine hundred eighty-seven) is written in Roman numerals as follows: CMXLCMLXXXVII