The number 42540 (forty-two thousand five hundred forty) is written in Roman numerals as follows: XLIIDXL