-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest-format.out
172 lines (153 loc) · 1.88 KB
/
test-format.out
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
zero fill:
00000000
00000042
42000000
420000000
−0000004
−0000042
−4200000
−42000000
space fill:
0
42
42000000
420000000
−4
−42
−4200000
−42000000
grouping:
0
42
42,000,000
420,000,000
−4
−42
−4,200,000
−42,000,000
grouping with zero fill:
0
0
00
000
0,000
0,000,000
0,000,000,000
0,000,000,000,000,000
grouping with zero fill (overflow):
1
1
12
123
12,345
12,345,678
1,234,567,890,123
grouping with space fill:
0
0
0
0
0
0
0
0
grouping with space fill (overflow):
1
1
12
123
12,345
12,345,678
1,234,567,890,123
grouping with general notation:
0
42
42,000,000
420,000,000
−4
−42
−4,200,000
−42,000,000
precision (fixed-point notation):
0.5
0.45
0.445
0.44445
100.0
100.00
100.000
100.00000
precision (significant digits):
0.05
0.5
0.45
0.445
0.44445
1e+2
1.0e+2
100
100.00
100.20
0.0020
precision and rounding (significant digits):
0.05
0.5
0.45
0.445
0.44445
123
100
120
123
123.5
123.45
123.450
precision and grouping with space fill:
123,456.5
1,234,567.45
12,345,678.445
123,456,789.44445
123,456.0
1,234,567.00
12,345,678.000
123,456,789.00000
float type passed int:
42
int type passed float:
number:
0.0042
0.42
0
42
42,000,000
420,000,000
−4
−42
−4,200,000
−42,000,000
percentage:
0%
4%
42%
420%
−4%
−42%
−420%
percentage with rounding and sign:
+0.12%
+1.2%
+12%
+120%
−0.12%
−1.2%
−12%
−120%
exponent:
0e+0
4.2e+1
4.2e+7
4.2e+8
−4e+0
−4.2e+1
−4.2e+6
−4.2e+7