The number 940838 (nine hundred forty thousand eight hundred thirty-eight) is written in Roman numerals as follows: CMXLDCCCXXXVIII