The number 18840 (eighteen thousand eight hundred forty) is written in Roman numerals as follows: XVIIIDCCCXL