What is MDCCCXLII in Roman Numerals?

MDCCCXLII. How much is MDCCCXLII in Roman Numerals? What is MDCCCXLII? MDCCCXLII = 1842.
MDCCCXLII = 1842