The number 24787 (twenty-four thousand seven hundred eighty-seven) is written in Roman numerals as follows: XXIVDCCLXXXVII