The number 878040 (eight hundred seventy-eight thousand forty) is written in Roman numerals as follows: DCCCLXXVIIIXL