The number 840538 (eight hundred forty thousand five hundred thirty-eight) is written in Roman numerals as follows: DCCCXLDXXXVIII