Public class convertmoney {
Public static void main (string [] ARGs ){System. Out. println (convert (6800000300.23d ));}/*** Arabic numerals are converted to uppercase Chinese characters. Only up to digits are supported, and decimal conversions are not supported.* @ Param ARGs*/Public static string convert (double N ){Char [] d = {'0', 'yi', 'er', 'san', 'siz', 'wu', 'l', 'shanghai ', 'handler', 'handler '};Char [] D2 = {'meta', 'pick', 'taobao', 'tao
There is a wood has encountered financial related development, good Arabic numerals, must be the whole form of Chinese characters display, this is just, but also to the whole into traditional Chinese characters. It's very upsetting.
Just saw a brother to ask the question, finished just found already knot paste, depressed ah ~ ~
Just see this thing is useful, so posted out from the reward hehe
Ideas:
At first the thought of using Select, for the loop to convert each Arabic numeral to the corresponding Chinese, and then think of actually can use an array, this looks less code, after all, 0~9, can correspond, but ~ problem appeared, for 10~31, to become "two pick one" such format, h
Capital | amount | Convert the following C # code to achieve the ability to convert Arabic numerals into Chinese capital amounts, and Visual Studio.NET 2003 debugging Basic Pass (without rigorous testing, I hope you find errors after contact with the author fanz2000@sohu.com, or directly on the CSDN last post to inform).
The code's keynote function is convertsum, and its argument is a string of numeric strings of string type. The method is invoked in
+ tmp;IF Float_part is isn't NULL then--Calculate the part of a small numberK: = 0;TMP: = ';For k in 1.. LENGTH (Float_part) LOOPTMP: = TMP | | Ling_jiu_map (SUBSTR (Float_part, K, 1));END LOOP;ReturnValue: = ReturnValue | | '. ' | | tmpEND IF;RETURN returnvalue;END;650) this.width=650; "title=" 001.png "src=" http://s4.51cto.com/wyfs02/M01/7F/78/ Wkiom1cfzlmw6ryhaaa-0intar0455.png "alt=" Wkiom1cfzlmw6ryhaaa-0intar0455.png "/>This article is from the "struggling small snail" blog, please be sur
Some programmers keyboard is with small number keys, in the use of Xshell Chinese version may appear some small situation, this set with you to analyze the use of the numeric keypad garbled situation how to do. Problem Description:When you edit with VI on Xshell, when you open NumLock, enter the number keys on the keypad, the result is not a number, but a letter and then line (in fact, the command module c
Win7 keypad on the NumLock key we will often use, it is mainly used to switch keypad on the digital switch, to a certain extent to the user a lot of convenience. If one day you find the NumLock key is invalid, no matter how to click on the keypad is not open, you must first think of the keyboard is not broken. In fact, many times this is due to Win7 system setup
1. Virtual keypad to fill in the form more quickly
When it comes to some frequent data entry, the financial staff are more accustomed to using the numeric keypad on the keyboard. If you use a simple keyboard operation without a keypad, a row of data keys can be awkward to operate. If the virtual a digital keypad on th
When using VI on the putty, when opening numlock, press the numeric key on the keypad and not enter a number, but a letter and then newline (in fact, the command mode corresponds to the upper and lower keys). WorkaroundOption Terminal->features, find disable application keypad mode, select on it.The Xshell in Xmanager 4 also has a small keyboard problem resolution ofModify session Properties--terminal->VT m
How the WIN8 system uses the numeric keypad instead of the mouse
First, on the WIN8 system desktop, right click on the Win button, and then select "Control Panel." Then, on the Win8 System Control Panel, click on the "Easy to use" menu.
Second, in the WIN8 system easy to use the menu panel, click the "Change the way the keyboard Works" button.
Third, then enter the "make keyboard easier to use window", tick "Start mouse button", and in the followin
I do not know that people usually use the computer keyboard, have you noticed that not only on the main keyboard has a number of keys, on the right side of the keypad also has a number of keys, in fact, we need to lose the password and so on, the use of more or the right digital keyboard, but many times there will always be small keyboard lights do not light, This is the need to press the NUM LOCK key to the line, Windows XP users do not feel very tro
Now the notebook keypad opened inadvertently will open, and some novice will think keyboard failure, string key, should first consider the keypad. The method is simple, hold down the FN plus numlk scrlk (there's also some shift plus NUMLK scrlk).
One, if you can not find the NUM LOCK key in your notebook, small series to remind you that some brands of notebooks on the NUM LOCK key and scroll key is the sam
When using VI on the putty, when opening numlock, press the numeric key on the keypad and not enter a number, but a letter and then newline (in fact, the command mode corresponds to the upper and lower keys). WorkaroundOption Terminal->features, find disable application keypad mode, select on it.The Xshell in Xmanager 4 also has a small keyboard problem resolution ofModify session Properties--terminal->VT m
ThinkPad Series Models When you reinstall the system, or in other cases, you cannot distinguish between the input method's case or the keypad switch when editing the document.
This problem is generally caused by hot key drivers.
Operation Steps:
ThinkPad Series models after reinstalling the system, or in the case of newer drivers such as graphics drivers, switching the case without a case switch when editing the document, o
Most of the software on the MAC external USB keyboard support is good, but there are some software is lazy, such as I recently encountered a software is not support keypad input numbers, and with the big keyboard number keys is no problem, it is wonderful. Wonderful work, the problem is still to be solved. A little research on this problem, found that you can use the Karabiner software to map the keyboard. For my needs, it is to map the number keys on
Careful netizen in the process of using WIN8 system, will find a problem, we to WIN8 system computer boot, the keyboard in the digital area by default is closed, we need to press NUM LOCK to open it, can use the numeric keypad, so that the recognition will affect the user's operation, So the Hedong Software Park small make up for everyone to solve the method, can let us after each boot without pressing NUM LOCK to open the numeric
XP users in the use of computers for Office learning, the keyboard is an indispensable input tool, through the keyboard we can not only type text, but also through the keyboard shortcut keys for the rapid operation of various computers. A user reflects that the small keyboard position on the lights do not know how, suddenly will not be lit, small keyboard lights not only with the word of the case switch has a relationship, but also with the keypad dig
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.