The number 940031 (nine hundred forty thousand thirty-one) is written in Roman numerals as follows: CMXLXXXI