The number 45840 (forty-five thousand eight hundred forty) is written in Roman numerals as follows: XLVDCCCXL