The number 840997 (eight hundred forty thousand nine hundred ninety-seven) is written in Roman numerals as follows: DCCCXLCMXCVII