The number 940042 (nine hundred forty thousand forty-two) is written in Roman numerals as follows: CMXLXLII