The number 40594 (forty thousand five hundred ninety-four) is written in Roman numerals as follows: XLDXCIV