The number 845942 (eight hundred forty-five thousand nine hundred forty-two) is written in Roman numerals as follows: DCCCXLVCMXLII