The number 12840 (twelve thousand eight hundred forty) is written in Roman numerals as follows: XIIDCCCXL