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