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