The number 40198 (forty thousand one hundred ninety-eight) is written in Roman numerals as follows: XLCXCVIII