Convert number words to numeric digits

Is there any package or code snippet around to help me out to convert number words to numeric digits?
“two million three thousand nine hundred and eighty four” to “2003984”
“twenty one” to “21”
and so on
Thanks in advance

No idea if anything exists, but my guess is you could use num2words to help you write the reverse implementation.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.