The number 40947 (forty thousand nine hundred forty-seven) is written in Roman numerals as follows: XLCMXLVII