The number 21798 (twenty-one thousand seven hundred ninety-eight) is written in Roman numerals as follows: XXIDCCXCVIII