The number 31790 (thirty-one thousand seven hundred ninety) is written in Roman numerals as follows: XXXIDCCXC