Word to Number Converter
Convert a complete English number phrase into digits and test whether extra trailing words are rejected.
When this tool helps
Use this to validate a signed English number phrase such as Minus forty-two. The sample should become -42, while adding apples should be rejected; remove units or other trailing text before conversion.
Turn an English number phrase into digits and check that the converter validates the whole input.
Worked example
Input
Minus forty-twoExpected result
-42Check the result
The original should return -42 and the longer phrase should be rejected.
Questions before you start
What should I check in the result?
Add apples at the end and try converting again to check handling of extra words.
What are the limits?
Use a complete number phrase in English. Remove units or other trailing text before converting.