How to convert a number written in words into digits
Type or paste the number as words and the digits appear immediately. The parser lowercases the text, drops any and, splits on spaces and hyphens, then accumulates the value: small words add, hundred multiplies what is pending by 100, and a scale word (thousand, million, billion, trillion) banks the pending amount and moves on.
If a word is not in its vocabulary it stops and names the word rather than skipping it, which is the behaviour you want when a wrong number would be worse than no number.
- Type the number in words, in British or American form; and is ignored either way.
- Use one hundred rather than a hundred, since the article is not recognised.
- Put negative or minus at the front for a negative value.
- Read the digits in the result box, which update as you type.
- If an error names a word, correct that word: the parser will not guess for you.