words-to-numbers
words-to-numbers copied to clipboard
numbers like 'twenty-two million', 'two hundred fifty million' not converted correctly
> wordsToNumbers('twenty million')
20000000
> wordsToNumbers('twenty-five million')
5000020
> wordsToNumbers('two hundred million')
200000000
> wordsToNumbers('two hundred fifty million')
50000200
Use the numerizer
module instead.