6400840 in words is written as :

Six Million Thousand Eight Hundred and Forty