number_words
number_words
Return a whole number in English words, such as “one thousand four hundred five”.
A negative number starts with “minus”. say_money() uses it for each
part of an amount.
Parameters
n
The number. Its absolute value must be below one quadrillion.
Returns
str — The number in words.
Raises
ValueError for a value that isn’t an int (a bool included), or a number of
a quadrillion or more.
Example
Part of the speech helpers module.