The number 297842 (two hundred ninety-seven thousand eight hundred forty-two) is written in Roman numerals as follows: CCXCVIIDCCCXLII