1040002 in words is written as :

One Million Forty Thousand Two