1 # Copyright (C) 2016 and later: Unicode, Inc. and others.
2 # License & terms of use: http://www.unicode.org/copyright.html
3 ######################################################################
4 # Copyright (c) 2004-2011 International Business Machines
5 # Corporation and others. All Rights Reserved.
6 ######################################################################
8 # Created: March 15 2004
10 ######################################################################
17 fp: "0.####" 0.10005 "0.1" 0.1
18 fp: - 0.10006 "0.1001" 0.1001
20 fp: "#.####" 0.10005 "0.1" 0.1
27 fp: "@@@" 1.234567 "1.23" 1.23
28 fp: - 1234567 "1230000" 1230000
29 fp: - 0.012345 "0.0123" 0.0123
31 fp: "#,@@@" 1234567 "1,230,000" 1230000
33 rt: "@@@@" 0.0012 "0.001200"
34 fp: - 0.99999 "1.000" 1
36 rt: "@###" 0.00123 "0.00123"
38 fp: - 123456 "123500" 123500
39 fp: - 12.3456 "12.35" 12.35
40 fp: - 0.0123456 "0.01235" 0.01235
42 fp: "@,###" 27182 "27,180" 27180
43 rt: - 123000 "123,000"
47 rt: "@##E0" 20000 "2E4"
50 fp: - 27182 "2.72E4" 27200
52 rt: "@@@E0" 20000 "2.00E4"
55 fp: - 27182 "2.72E4" 27200
57 fp: "#,@@##" 314156 "31,4200" 314200
62 fp: "@@@@@@" 123456.7 "123457" 123457
65 pat: "##,@@##" "#,@@##"
68 pat: "@@.@@" err # decimal sep. disallowed in sig. digits
69 pat: "@#@" err # only one cluster of sig. digits
70 pat: "@@0" err # either @ or 0, not both
72 # NumberRegression/Test4140009
73 rt: "" 123.456 "123.456"
74 rt: "" -123.456 "-123.456"
77 fpc: "en_US" 1234.56/USD "$1,234.56" 1234.56/USD
78 fpc: - 1234.56/JPY "\u00A51,235" 1235/JPY
79 # ISO codes that overlap display names (QQQ vs. Q)
80 # recognize real ISO name in parsing, so, can not use fake name as QQQ
81 #fpc: - 123/QQQ "QQQ123.00" 123/QQQ # QQQ is fake
82 fpc: - 123/GTQ "GTQ 123.00" 123/GTQ
83 # ChoiceFormat-based display names
84 fpc: - 1/INR "\u20b91.00" 1/INR
85 fpc: - 2/INR "\u20b92.00" 2/INR
86 # Display names with shared prefix (YDD vs. Y)
87 fpc: - 100/YDD "YDD 100.00" 100/YDD
88 fpc: - 100/CNY "CN\u00a5100.00" 100/CNY
90 # Regression Tests bug#7914
91 p: "#E00" "12E12" "12000000000000"
92 p: "#####" "12E12" "12000000000000"