5898788 in words is written as :

Five Million Thousand Seven Hundred and Eighty Eight