1234587 in words is written as :

One Million Thousand Five Hundred and Eighty Seven