number (bsdgames) by Ciro Santilli 34 Updated +Created
Converts numberical numbers to their full English form: unix.stackexchange.com/questions/413441/converting-numbers-into-full-written-words
For example:
number 123456789123456789123456879123456789123456789123456879
gives:
one hundred twenty-three sexdecillion.
four hundred fifty-six quindecillion.
seven hundred eighty-nine quattuordecillion.
one hundred twenty-three tredecillion.
four hundred fifty-six duodecillion.
seven hundred eighty-nine undecillion.
one hundred twenty-three decillion.
four hundred fifty-six nonillion.
eight hundred seventy-nine octillion.
one hundred twenty-three septillion.
four hundred fifty-six sextillion.
seven hundred eighty-nine quintillion.
one hundred twenty-three quadrillion.
four hundred fifty-six trillion.
seven hundred eighty-nine billion.
one hundred twenty-three million.
four hundred fifty-six thousand.
eight hundred seventy-nine.
It also takes input from stdin, e.g.:
primes 1 10 | number
gives:
two.
...
three.
...
five.
...
seven.