6400012 in words is written as :

Six Million Thousand Twelve