Task

Show how to spell out a number in English.

You can use a preexisting implementation or roll your own, but you should support inputs up to at least one million (or the maximum value of your language's default bounded integer type, if that's less).

Support for inputs other than positive integers (like zero, negative integers, and floating-point numbers) is optional.



Related task

   Spelling of ordinal numbers.


 
set numbers to [0,1,7,22,186,pi,-48.6,-3451,925734, 12570902378]
 
repeat with each number in numbers
	put number into output
	put numberWords of number into character 15 of output
	put output
end repeat
 