The number 838502 (eight hundred thirty-eight thousand five hundred two) is written in Roman numerals as follows: DCCCXXXVIIIDII