-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTestBT.java
More file actions
21 lines (19 loc) · 1.14 KB
/
Copy pathTestBT.java
File metadata and controls
21 lines (19 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
public class TestBT {
public static void main(String[] args) {
String[] strN = {"0005,2 30,90.00987","432,121.400 000","+987,654.321","-1,234,567.890","฿789.354",
"45,234.75฿","45,234฿","42abc3.3985", "000,435;769","5467+2340","765-123.446","45,234฿.75",
".","0.0", "0.00", "0.245000000000000009436",".05","0.5","0.555","1.004","0.995","1.321","1.9944","0.10",
".11",".123", ".21",".511","0","1","10","11","111","123.","222,221","1,000,001","54,321.3333","100,001.0095",
"2,147,483,647", //max value of integer
"1,001,001,000,001","123,001,998,830,750,501","4,123,001,998,830,750,501",
"999 999.99 ","9,009,009,000,000","999,999,999.999",
"999,999,999,999,999,999,999,999,999,999,999,999.9999",
"9,223,372,036,854,775,807" // max value of long integer
};
for (String targetNumber : strN) {
System.out.println("original number : "+targetNumber);
System.out.println("after conversion : "+BahtText.convert(targetNumber));
System.out.println();
}
}
}