To convert English number words to digits, split the phrase at each large scale word. Convert the words immediately before million or thousand into a number, multiply, and add the groups. Keep the final hundreds, tens, and ones as a separate group.
Worked examples
- Twenty-three thousand four hundred five gives 23 ร 1,000 + 405 = 23,405.
- One million eight thousand nine gives 1,000,000 + 8,000 + 9 = 1,008,009. Notice the zeros in each group.
- Negative two hundred and forty gives โ240. The word โandโ in this example connects the hundreds to the remainder.
- Six point zero five gives 6.05. The zero marks the tenths place, so it must stay in the result.
- Two and a half million gives 2.5 ร 1,000,000 = 2,500,000.
Handle labels separately
A phrase such as โtwenty-firstโ is an ordinal that describes position. In digits it becomes 21st. A spoken identifier such as โzero zero three sevenโ is a string of digits and may need to remain 0037. Converting it to an ordinary quantity could erase the leading zeros.
Check the intended unit as well as the digits. โOne point six percentโ is 1.6%, equivalent to 0.016 as a decimal fraction. Keep the percent sign if the reader expects a percentage.
Continue with Oakgen Agent
Coming soon: A dedicated instant words-to-numbers form.
Open in Oakgen Agent
The prompt is filled in for you. Review it before sending.


