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