This to convert number to english words
Max number is Trillion.
My constrains:
-
No Negative Number.
-
Min number is zero.
-
Max number is Trillion.
-
Input must be integer.
You can run it as the following example:
ruby arabic2english.rb 100000
The output as the following:
one hundred thousand