();
Gets the long and fractional string that the floating-point number is decomposed into, the first array element is the integer part string, the second is the fractional part string results[8] = dividestr[1]; for (int i=dividestr[0].length (), j=8 i>0j>0; i-=4,j--) {try{results[j-1] = dividestr[0].
SUBSTRING (i-4, i);
}catch (Exception e) {results[j-1] = dividestr[0].substring (0, I);
Break
} if (results[8] = = null) {resultstrs[8] = "integer"; }else if (Results[8]
This article describes the Java implementation of the digital capitalization amount conversion method. Share to everyone for your reference. Specifically as follows:
Example: an implementation that converts the amount of an Arabic numeral to an uppercase amount in Chinese, for example:¥1011→ 0 to pick one yuan whole.The capital number is: 0, one, the other, three, the restaurant, Wu, Lu, QI, BA, nine, pick, Bai, Qian, million, billion
import
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
Example: Input 12345, the program gives: one million thousand thousands of restaurants to collect Wu
Example: Enter 10023040, the program gives: one thousand Wan another to pick up
One of the solutions (tested in SqlServer2000):
CREATE FUNCTION Fun_
Copy Code code as follows:
Import Java.util.HashMap;
Import Java.util.Map;
public class Figureandchinese2util {
That caches all numbers.private static Map Map = new Hashmap (10);static {Map.put (' 1 ', ' one ');Map.put (' 2 ', ' II
Free to do nothing, on a whim, wrote a number of cases of renminbi capitalization. The main difficulty is "0" in different locations, the manner of processing is different.
This is considered as a universal number with a maximum of 12 digits and a
TemporarySelect Bd_glorgbook.glorgbookcode,NVL (replace (bd_glorgbook.glorgbookname, ' group benchmark Book ', '), ' subtotal ') company name,--Learn from radish Bd_accsubj.subjcode,bd_accsubj.subjname,SUM (case at gl_balance.year= ' then Gl_balance.
Transferred from a high school blog
Http://user.qzone.qq.com/853436204/blog/1345288142
The following is my opinion only. If you have any objection, you are welcome to make a picture.
It was said that I was too tired last night, and I couldn't
Studies show that:
① Cancer cannot be formed in a weak alkaline human body;
② Cancer can only be formed in acidic bodies;
③ If you have cancer, the body is acidic;
④ Cancer can only expand in an acidic body;
⑤ If your body becomes weak and alkaline,
It oligarchy gradually seize databases, development tools, PC-OS and mobile-OS, and then dare to touch development languages, such as G Language.
IME, mail, video, blog, shopping, Weibo, Wikipedia, download sites, and even hao123 are all part of
** For Unicode system:Report z_barry_test no standard page heading.Types: cur6 type P decimals 6,Cur2 type P decimals 2.Data va1 type cur2.Data STR (40) type C.Va1 = '000000 '.Perform conv_amount using va1Changing Str.Write Str.*&--------------------
Huawei trial-converts the initial character string to uppercase, and Huawei capitalExample:Input: this is a book
Return Value: This Is A Book
# Include # include # include int main () {char input [] = "this is a book"; char output [256] = {'
This method converts the lowercase Arabic numerals into Chinese Characters in upper case to facilitate the development of some billing pages.
String[] DX_Num = { , , , , , , , , , String[] DX_Yuan = { , , , , , , , , , , , , String[] DW_X
Copy codeThe Code is as follows: public static string ConvertToChineseMoney (double money)
{
If (money Throw new ArgumentOutOfRangeException ("the parameter money cannot be a negative value! ");
String s = money. toString ("# L # E # D # C # K # E #
A friend is about to get married, buy a house, and soon the decoration is ready. She wants to buy furniture and asks me to accompany her. I would like. She told her that the International Furniture city is happy to walk around. By the way, it is a
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.