The number 12540 (twelve thousand five hundred forty) is written in Roman numerals as follows: XIIDXL