The number 318842 (three hundred eighteen thousand eight hundred forty-two) is written in Roman numerals as follows: CCCXVIIIDCCCXLII