Change a string of numbers into English or Chinese expressions.
For example: 1234 is converted to one thousand two hundred thirty four and one southand two hundred thirty four
< br >
thinking analysis
This is a pure coding problem, however, you need to pay attention to a special skill, that is, similar to the chain of responsibility pattern of the same code writing format, we first write the bits, the results of the bits, need to enumerate out, and then, deal with the number of tens, at this time, we can put the ten points out of the process, the rest of the call to deal with the function of the bits. Similarly, when dealing with hundreds, the same is true, we do not need to repeat the process from beginning to end, because the tens of bits have been processed by relevant functions, at this time, only need to deal with the hundreds, and then call the tens of the function, ten will call the ones, similar to the chain of responsibility pattern code.
It should be noted that in English, three is one, Thousand, Million, Billion. In Chinese, the 4 digits are one, which in turn is Wan and billion, splicing on the base of ten hundred thousand to get it done.
Chinese and English have different ways of expressing numbers. English is expressed in multiples of \"thousand\" after the number exceeds one thousand. For example, \"ten thousand\" is \"ten thousand\
< br >
For example, 1207210472 can be processed to 1,207,210,472, so that the number can be read in English as: one billion two hundred and seven million two hundred and ten thousand four hundred and seven-two
Chinese Arabic numerals can be converted to English using a digital-to-English converter. This tool lets you know how to express certain Arabic numerals in English.
In addition, there are several online tools that can convert Chinese Arabic numerals into English, such as: Numbers, Google Input tool, Numbers widget, etc.
The method of converting Chinese digits to English digits is as follows:
< br >
1. Cardinals
< br >
one: one
< br >
two: two
< br >
three: three
< br >
four: four
< br >
five: five
< br >
six: six
< br >
seven: seven
< br >
eight: eight
< br >
nine: nine
< br >
ten:
< br >
eleven: eleven
< br >
twelve: twelve
< br >
thirteen: thirteen
< br >
fourteen: fourteen
< br >
fifteen
< br >
sixteen: sixteen
< br >
seventeen: seventeen
< br >
eighteen: eighteen
< br >
nineteen: nineteen
< br >
twenty
< br >
thirty: thirty
< br >
forty: forty
< br >
fifty: fifty
< br >
sixty: sixty
< br >
seventy: seventy
< br >
eighty: eighty
< br >
ninety: ninety
< br >
One hundred: a hundred
< br >
One thousand: a thousand
< br >
1 million. a million
< br >
1,000,000,000. a billion
< br >
Second, ordinal number words
< br >
first: first
< br >
second: second
< br >
3 third: third
< br >
4 fourth: fourth
< br >
5 fifth: fifth
< br >
6 The sixth
You can download a translation software