The number 4787 (four thousand seven hundred eighty-seven) is written in Roman numerals as follows: IVDCCLXXXVII