The number 38791 (thirty-eight thousand seven hundred ninety-one) is written in Roman numerals as follows: XXXVIIIDCCXCI