The number 840004 (eight hundred forty thousand four) is written in Roman numerals as follows: DCCCXLIV