The number 987231 (nine hundred eighty-seven thousand two hundred thirty-one) is written in Roman numerals as follows: CMLXXXVIICCXXXI