6400871 in words is written as :

Six Million Thousand Eight Hundred and Seventy One