Work out words to number instantly with clear inputs, formula shown and shareable results.
Parsing number words accumulates values, multiplying by 100 at 'hundred' and banking the running total at each scale word such as thousand or million. The word 'and' is ignored.
Parsing rule
current += word value; at 'hundred' current ×= 100; at a scale word total += current × scale and reset current
3421.
No. 'twenty-one' and 'twenty one' are both accepted, and 'and' can be included or left out.