The number 40174 (forty thousand one hundred seventy-four) is written in Roman numerals as follows: XLCLXXIV