The number 40978 (forty thousand nine hundred seventy-eight) is written in Roman numerals as follows: XLCMLXXVIII