How English writes numbers out
English numbers below a hundred follow a short set of rules. Zero to nineteen each have their own word. From twenty to ninety-nine, the tens word and the units word are joined with a hyphen: twenty-one, forty-five, ninety-nine. Watch the spelling of forty, which drops the u of four, and of eighteen, which has only one t.
Larger numbers are built in groups of three digits. 2,000,000,017 has the groups 2, 000, 000 and 017. Each non-zero group is read on its own and followed by its scale word, and the zero groups are skipped, which gives two billion seventeen. In 1,250 the groups are 1 and 250: one thousand two hundred fifty. The scale words go up by a factor of a thousand each: thousand, million, billion, trillion, quadrillion and on.
Two habits differ between British and American English. British writers put "and" before the last part of a number: one hundred and fifteen, two thousand and five. American writers usually leave it out, keeping "and" for the decimal point in money, as in five dollars and ten cents. And a billion today means a thousand million in both, the short scale. Older British texts, and many European languages, use the long scale, where a billion is a million million.
Decimals are read digit by digit after the word point. 3.14 is three point one four, and 0.05 is zero point zero five. A minus sign is read as minus: −1,250.75 is minus one thousand two hundred fifty point seven five. Style guides for prose often say to write numbers under ten as words and larger ones as figures, except at the start of a sentence, where a number is always written out.
The tool has limits. It writes cardinal numbers, not ordinals such as twenty-first, and it does not write fractions such as three quarters. It reads plain digits only, so 1e6 must be typed as 1000000. The whole part can have up to 66 digits, and the whole input up to 200 characters. For money, use Amount in Words, which also handles lakhs and crores.