The number 840397 (eight hundred forty thousand three hundred ninety-seven) is written in Roman numerals as follows: DCCCXLCCCXCVII