The number 840023 (eight hundred forty thousand twenty-three) is written in Roman numerals as follows: DCCCXLXXIII