The number 840502 (eight hundred forty thousand five hundred two) is written in Roman numerals as follows: DCCCXLDII