The number 840058 (eight hundred forty thousand fifty-eight) is written in Roman numerals as follows: DCCCXLLVIII