The number 27798 (twenty-seven thousand seven hundred ninety-eight) is written in Roman numerals as follows: XXVIIDCCXCVIII