The number 940877 (nine hundred forty thousand eight hundred seventy-seven) is written in Roman numerals as follows: CMXLDCCCLXXVII