The number 940874 (nine hundred forty thousand eight hundred seventy-four) is written in Roman numerals as follows: CMXLDCCCLXXIV