1 // ***************************************************************************
3 // * Copyright (C) 2004, International Business Machines
4 // * Corporation and others. All Rights Reserved.
6 // ***************************************************************************
11 //------------------------------------------------------------
12 // Rule Based Number Format Support
13 //------------------------------------------------------------
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.)
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?
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"
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"
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"
70 "100: , =%default=;\n"
71 "1000: , <%default< thousand, >%default>;\n"
72 "1,000,000: , =%default=;"