The number 940027 (nine hundred forty thousand twenty-seven) is written in Roman numerals as follows: CMXLXXVII