What number is MDCCCXLII?

What year is the Roman Numeral MDCCCXLII?

MDCCCXLII = 1842

Convert between a number and Roman Numerals.