The number 40954 (forty thousand nine hundred fifty-four) is written in Roman numerals as follows: XLCMLIV