The number 840012 (eight hundred forty thousand twelve) is written in Roman numerals as follows: DCCCXLXII