5898774 in words is written as :

Five Million Thousand Seven Hundred and Seventy Four