NUM2WORDS(1)
π num2words(1) π
okay so bestie, welcome to the num2words manual page β it lives in section 1 of the User Commands manual, and it is exactly as chaotic as it sounds. sit down, grab a strawberry π, we're converting numbers into words.
β¨ NAME β¨
num2words β num2words. that's it. that's the name section. iconic brevity, no notes. π
πΈ DESCRIPTION πΈ
so here's the thing. before this program even gets to do its little job, Python pops off with a whole stack of SyntaxWarnings from a file called docopt.py living at /usr/lib/python3.14/site-packages/. it's giving "the compiler is yelling at you but everything still works" energy. these are warnings, not errors β but read them, because the page says the escape sequences will not work in the future. π
here's the whole meltdown, verbatim, exactly like your terminal will spit it at you:
/usr/lib/python3.14/site-packages/docopt.py:165: SyntaxWarning: "\S" is an
invalid escape sequence. Such sequences will not work in the future.
Did you mean "\\S"? A raw string is also an option.
name = re.findall('(<\S*?>)', source)[0]
/usr/lib/python3.14/site-packages/docopt.py:166: SyntaxWarning: "\[" is an
invalid escape sequence. Such sequences will not work in the future.
Did you mean "\\["? A raw string is also an option.
value = re.findall('\[default: (.*)\]', source, flags=re.I)
/usr/lib/python3.14/site-packages/docopt.py:207: SyntaxWarning: "\[" is an
invalid escape sequence. Such sequences will not work in the future.
Did you mean "\\["? A raw string is also an option.
matched = re.findall('\[default: (.*)\]', description,
flags=re.I)
/usr/lib/python3.14/site-packages/docopt.py:456: SyntaxWarning: "\S" is an
invalid escape sequence. Such sequences will not work in the future.
Did you mean "\\S"? A raw string is also an option.
split = re.split('\n *(<\S+?>|-\S+?)', doc)[1:]
and after all that drama clears, the actual point of the program, lowkey understated:
num2words: convert numbers into words. β¨
π Usage:
num2words [options] <number> num2words --list-languages num2words
--list-converters num2words --help
π Arguments:
<number>β the number you want to convert into words. that's the whole job, bestie. hand it a number, get words back. π«Ά
π OPTIONS π
every single one, no skips, we don't gatekeep here:
-L,--list-languagesβ show all the languages. the full menu, bestie. π-C,--list-convertersβ show all the converters. every flavor of number-to-word it can do. π₯-l,--lang=<lang>β output language. default isen. π¬π§-t,--to=<to>β output converter. default iscardinal. π-h,--helpβ show this message. the classic. the icon. π-v,--versionβ show version. π
π₯ EXAMPLES π₯
not me showing you the receipts, but here, look:
$ num2words 10001
ten thousand and one
$ num2words 24,120.10
twenty-four thousand, one hundred and twenty point one
$ num2words 24,120.10 -l es
veinticuatro mil ciento veinte punto uno
$num2words 2.14 -l es --to currency dos euros con catorce
cΓ©ntimos
(yes, that last one really is missing a space after the $ and really does run the output into the command β the manual said it, so we're saying it too. ate. π)
this entire page is num2words 0.5.14, dated September 2025 β so when you're out here flexing your number-to-words skills, that's the version you're flexing with. slay, go convert something, periodt. πβ¨π¦
π¦ where this page comes from
- fedora 43: python3-num2words 0.5.14-6.fc43 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms