1006587 in words is written as :

One Million Six Thousand Five Hundred and Eighty Seven