The number 9864 (nine thousand eight hundred sixty-four) is written in Roman numerals as follows: IXDCCCLXIV