The number 318040 (three hundred eighteen thousand forty) is written in Roman numerals as follows: CCCXVIIIXL