The number 9838 (nine thousand eight hundred thirty-eight) is written in Roman numerals as follows: IXDCCCXXXVIII