The number 127842 (one hundred twenty-seven thousand eight hundred forty-two) is written in Roman numerals as follows: CXXVIIDCCCXLII