The number 40790 (forty thousand seven hundred ninety) is written in Roman numerals as follows: XLDCCXC