The number 840338 (eight hundred forty thousand three hundred thirty-eight) is written in Roman numerals as follows: DCCCXLCCCXXXVIII