The number 40747 (forty thousand seven hundred forty-seven) is written in Roman numerals as follows: XLDCCXLVII