The number 940872 (nine hundred forty thousand eight hundred seventy-two) is written in Roman numerals as follows: CMXLDCCCLXXII