The number 30940 (thirty thousand nine hundred forty) is written in Roman numerals as follows: XXXCMXL