The number 240877 (two hundred forty thousand eight hundred seventy-seven) is written in Roman numerals as follows: CCXLDCCCLXXVII