Convert Number to word

it doesnot use any library convert 0 to 1 billion

sample out put

1234567890
one billion two thousand three hundred forty five million sixty seven thousand eight hundred ninety dollars