The number 940504 (nine hundred forty thousand five hundred four) is written in Roman numerals as follows: CMXLDIV