The number 987142 (nine hundred eighty-seven thousand one hundred forty-two) is written in Roman numerals as follows: CMLXXXVIICXLII