The number 840038 (eight hundred forty thousand thirty-eight) is written in Roman numerals as follows: DCCCXLXXXVIII