The number 170842 (one hundred seventy thousand eight hundred forty-two) is written in Roman numerals as follows: CLXXDCCCXLII