Languages / English
Cardinalities
-
CARDINALITY_ONE
Matches i = 1 and v = 0
Example Integers: 1
-
CARDINALITY_OTHER
Matches all other values
Example Integers: 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 100, 1,000, 10,000, 100,000, 1,000,000
Example Decimals: 0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5
Cardinality Ranges
-
CARDINALITY_ONE - CARDINALITY_OTHER
Matches CARDINALITY_OTHER
-
CARDINALITY_OTHER - CARDINALITY_ONE
Matches CARDINALITY_OTHER
-
CARDINALITY_OTHER - CARDINALITY_OTHER
Matches CARDINALITY_OTHER
Ordinalities
-
ORDINALITY_ONE
Matches n % 10 = 1 and n % 100 != 11
Example Integers: 1, 21, 31, 41, 51, 61, 71, 81, 101, 1,001
-
ORDINALITY_TWO
Matches n % 10 = 2 and n % 100 != 12
Example Integers: 2, 22, 32, 42, 52, 62, 72, 82, 102, 1,002
-
ORDINALITY_FEW
Matches n % 10 = 3 and n % 100 != 13
Example Integers: 3, 23, 33, 43, 53, 63, 73, 83, 103, 1,003
-
ORDINALITY_OTHER
Matches all other values
Example Integers: 0, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 100, 1,000, 10,000, 100,000, 1,000,000
Addendum: Language Form Rules
Cardinalities
-
CARDINALITY_ONE
Matches
i = 1 and v = 0
Example Integers:
1
-
CARDINALITY_OTHER
Matches
all other values
Example Integers:
0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 100, 1,000, 10,000, 100,000, 1,000,000
Example Decimals:
0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5
Cardinality Ranges
-
CARDINALITY_ONE - CARDINALITY_OTHER
Matches
CARDINALITY_OTHER
-
CARDINALITY_OTHER - CARDINALITY_ONE
Matches
CARDINALITY_OTHER
-
CARDINALITY_OTHER - CARDINALITY_OTHER
Matches
CARDINALITY_OTHER
Ordinalities
-
ORDINALITY_ONE
Matches
n % 10 = 1 and n % 100 != 11
Example Integers:
1, 21, 31, 41, 51, 61, 71, 81, 101, 1,001
-
ORDINALITY_TWO
Matches
n % 10 = 2 and n % 100 != 12
Example Integers:
2, 22, 32, 42, 52, 62, 72, 82, 102, 1,002
-
ORDINALITY_FEW
Matches
n % 10 = 3 and n % 100 != 13
Example Integers:
3, 23, 33, 43, 53, 63, 73, 83, 103, 1,003
-
ORDINALITY_OTHER
Matches
all other values
Example Integers:
0, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 100, 1,000, 10,000, 100,000, 1,000,000
Addendum: Language Form Rules
The language form expressions above are specified by Unicode Technical Standard #35 and use the following notation:
-
n
absolute value of the source number (integer and decimals) -
i
integer digits ofn
-
v
number of visible fraction digits inn
, with trailing zeros -
w
number of visible fraction digits inn
, without trailing zeros -
f
visible fractional digits inn
, with trailing zeros -
t
visible fractional digits inn
, without trailing zeros
Some examples follow:
-
n = 1
⇒i = 1, v = 0, w = 0, f = 0, t = 0
-
n = 1.0
⇒i = 1, v = 1, w = 0, f = 0, t = 0
-
n = 1.00
⇒i = 1, v = 2, w = 0, f = 0, t = 0
-
n = 1.3
⇒i = 1, v = 1, w = 1, f = 3, t = 3
-
n = 1.30
⇒i = 1, v = 2, w = 1, f = 30, t = 3
-
n = 1.03
⇒i = 1, v = 2, w = 2, f = 3, t = 3
-
n = 1.230
⇒i = 1, v = 3, w = 2, f = 230, t = 23