The number 940871 (nine hundred forty thousand eight hundred seventy-one) is written in Roman numerals as follows: CMXLDCCCLXXI