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