The number 842745 (eight hundred forty-two thousand seven hundred forty-five) is written in Roman numerals as follows: DCCCXLIIDCCXLV