The number 940831 (nine hundred forty thousand eight hundred thirty-one) is written in Roman numerals as follows: CMXLDCCCXXXI