The number 40938 (forty thousand nine hundred thirty-eight) is written in Roman numerals as follows: XLCMXXXVIII