The number 874040 (eight hundred seventy-four thousand forty) is written in Roman numerals as follows: DCCCLXXIVXL