The number 840540 (eight hundred forty thousand five hundred forty) is written in Roman numerals as follows: DCCCXLDXL