]>
Commit | Line | Data |
---|---|---|
374ca955 A |
1 | // *************************************************************************** |
2 | // * | |
3 | // * Copyright (C) 2004, International Business Machines | |
4 | // * Corporation and others. All Rights Reserved. | |
5 | // * | |
6 | // *************************************************************************** | |
7 | // | |
8 | ||
9 | en_GB { | |
10 | ||
11 | //------------------------------------------------------------ | |
12 | // Rule Based Number Format Support | |
13 | //------------------------------------------------------------ | |
14 | ||
15 | // * Spellout rules for U.K. English. U.K. English has one significant | |
16 | // * difference from U.S. English: the names for values of 1,000,000,000 | |
17 | // * and higher. In American English, each successive "-illion" is 1,000 | |
18 | // * times greater than the preceding one: 1,000,000,000 is "one billion" | |
19 | // * and 1,000,000,000,000 is "one trillion." In British English, each | |
20 | // * successive "-illion" is one million times greater than the one before: | |
21 | // * "one billion" is 1,000,000,000,000 (or what Americans would call a | |
22 | // * "trillion"), and "one trillion" is 1,000,000,000,000,000,000. | |
23 | // * 1,000,000,000 in British English is "one thousand million." (This | |
24 | // * value is sometimes called a "milliard," but this word seems to have | |
25 | // * fallen into disuse.) | |
26 | ||
27 | // Could someone please correct me if I'm wrong about "milliard" falling | |
28 | // into disuse, or have missed any other details of how large numbers | |
29 | // are rendered. Also, could someone please provide me with information | |
30 | // on which other English-speaking countries use which system? Right now, | |
31 | // I'm assuming that the U.S. system is used in Canada and that all the | |
32 | // other English-speaking countries follow the British system. Can | |
33 | // someone out there confirm this? | |
34 | ||
35 | SpelloutRules { | |
36 | "%simplified:\n" | |
37 | "-x: minus >>;\n" | |
38 | "x.x: << point >>;\n" | |
39 | "zero; one; two; three; four; five; six; seven; eight; nine;\n" | |
40 | "ten; eleven; twelve; thirteen; fourteen; fifteen; sixteen;\n" | |
41 | " seventeen; eighteen; nineteen;\n" | |
42 | "20: twenty[->>];\n" | |
43 | "30: thirty[->>];\n" | |
44 | "40: forty[->>];\n" | |
45 | "50: fifty[->>];\n" | |
46 | "60: sixty[->>];\n" | |
47 | "70: seventy[->>];\n" | |
48 | "80: eighty[->>];\n" | |
49 | "90: ninety[->>];\n" | |
50 | "100: << hundred[ >>];\n" | |
51 | "1000: << thousand[ >>];\n" | |
52 | "1,000,000: << million[ >>];\n" | |
53 | "1,000,000,000,000: << billion[ >>];\n" | |
54 | "1,000,000,000,000,000: =#,##0=;\n" | |
55 | "%default:\n" | |
56 | "-x: minus >>;\n" | |
57 | "x.x: << point >>;\n" | |
58 | "=%simplified=;\n" | |
59 | "100: << hundred[ >%%and>];\n" | |
60 | "1000: << thousand[ >%%and>];\n" | |
61 | "100,000>>: << thousand[>%%commas>];\n" | |
62 | "1,000,000: << million[>%%commas>];\n" | |
63 | "1,000,000,000,000: << billion[>%%commas>];\n" | |
64 | "1,000,000,000,000,000: =#,##0=;\n" | |
65 | "%%and:\n" | |
66 | "and =%default=;\n" | |
67 | "100: =%default=;\n" | |
68 | "%%commas:\n" | |
69 | "' and =%default=;\n" | |
70 | "100: , =%default=;\n" | |
71 | "1000: , <%default< thousand, >%default>;\n" | |
72 | "1,000,000: , =%default=;" | |
73 | "%%lenient-parse:\n" | |
74 | "& ' ' , ',' ;\n" | |
75 | } | |
76 | ||
77 | } |