The number 17940 (seventeen thousand nine hundred forty) is written in Roman numerals as follows: XVIICMXL