• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1...testing value 0
2|%f|	printf =   |0.000000|	wrote  10 chars
3|%f|	debuglog = |0.000000|	wrote  10 chars
4|%2f|	printf =   |0.000000|	wrote  10 chars
5|%2f|	debuglog = |0.000000|	wrote  10 chars
6|%9f|	printf =   | 0.000000|	wrote  11 chars
7|%9f|	debuglog = | 0.000000|	wrote  11 chars
8|%8.0f|	printf =   |       0|	wrote  10 chars
9|%8.0f|	debuglog = |       0|	wrote  10 chars
10|%8.1f|	printf =   |     0.0|	wrote  10 chars
11|%8.1f|	debuglog = |     0.0|	wrote  10 chars
12|%8.2f|	printf =   |    0.00|	wrote  10 chars
13|%8.2f|	debuglog = |    0.00|	wrote  10 chars
14
15...testing value 3.7  (with rounding)
16|%f|	printf =   |3.700000|	wrote  10 chars
17|%f|	debuglog = |3.700000|	wrote  10 chars
18|%4f|	printf =   |3.700000|	wrote  10 chars
19|%4f|	debuglog = |3.700000|	wrote  10 chars
20|%9f|	printf =   | 3.700000|	wrote  11 chars
21|%9f|	debuglog = | 3.700000|	wrote  11 chars
22|%4.0f|	printf =   |   4|	wrote   6 chars
23|%4.0f|	debuglog = |   4|	wrote   6 chars
24|%4.1f|	printf =   | 3.7|	wrote   6 chars
25|%4.1f|	debuglog = | 3.7|	wrote   6 chars
26|%4.2f|	printf =   |3.70|	wrote   6 chars
27|%4.2f|	debuglog = |3.70|	wrote   6 chars
28
29...testing value 123.01
30|%f|	printf =   |123.010000|	wrote  12 chars
31|%f|	debuglog = |123.010000|	wrote  12 chars
32|%4f|	printf =   |123.010000|	wrote  12 chars
33|%4f|	debuglog = |123.010000|	wrote  12 chars
34|%9f|	printf =   |123.010000|	wrote  12 chars
35|%9f|	debuglog = |123.010000|	wrote  12 chars
36|%8.0f|	printf =   |     123|	wrote  10 chars
37|%8.0f|	debuglog = |     123|	wrote  10 chars
38|%8.1f|	printf =   |   123.0|	wrote  10 chars
39|%8.1f|	debuglog = |   123.0|	wrote  10 chars
40|%8.2f|	printf =   |  123.01|	wrote  10 chars
41|%8.2f|	debuglog = |  123.01|	wrote  10 chars
42|%8.3f|	printf =   | 123.010|	wrote  10 chars
43|%8.3f|	debuglog = | 123.010|	wrote  10 chars
44
45...testing value 3.0019  (with rounding)
46|%f|	printf =   |3.001900|	wrote  10 chars
47|%f|	debuglog = |3.001900|	wrote  10 chars
48|%10f|	printf =   |  3.001900|	wrote  12 chars
49|%10f|	debuglog = |  3.001900|	wrote  12 chars
50|%10.0f|	printf =   |         3|	wrote  12 chars
51|%10.0f|	debuglog = |         3|	wrote  12 chars
52|%10.3f|	printf =   |     3.002|	wrote  12 chars
53|%10.3f|	debuglog = |     3.002|	wrote  12 chars
54|%10.4f|	printf =   |    3.0019|	wrote  12 chars
55|%10.4f|	debuglog = |    3.0019|	wrote  12 chars
56|%.4f|	printf =   |3.0019|	wrote   8 chars
57|%.4f|	debuglog = |3.0019|	wrote   8 chars
58|%.9f|	printf =   |3.001900000|	wrote  13 chars
59|%.9f|	debuglog = |3.001900000|	wrote  13 chars
60
61...testing value -123.456 (with rounding)
62|%f|	printf =   |-123.456000|	wrote  13 chars
63|%f|	debuglog = |-123.456000|	wrote  13 chars
64|%10f|	printf =   |-123.456000|	wrote  13 chars
65|%10f|	debuglog = |-123.456000|	wrote  13 chars
66|%10.0f|	printf =   |      -123|	wrote  12 chars
67|%10.0f|	debuglog = |      -123|	wrote  12 chars
68|%10.1f|	printf =   |    -123.5|	wrote  12 chars
69|%10.1f|	debuglog = |    -123.5|	wrote  12 chars
70|%10.2f|	printf =   |   -123.46|	wrote  12 chars
71|%10.2f|	debuglog = |   -123.46|	wrote  12 chars
72|%10.3f|	printf =   |  -123.456|	wrote  12 chars
73|%10.3f|	debuglog = |  -123.456|	wrote  12 chars
74|%10.4f|	printf =   | -123.4560|	wrote  12 chars
75|%10.4f|	debuglog = | -123.4560|	wrote  12 chars
76|%10.5f|	printf =   |-123.45600|	wrote  12 chars
77|%10.5f|	debuglog = |-123.45600|	wrote  12 chars
78|%.4f|	printf =   |-123.4560|	wrote  11 chars
79|%.4f|	debuglog = |-123.4560|	wrote  11 chars
80
81...testing value = -123.456 width = '*'
82|%*f|	printf =   |-123.456000|	wrote  13 chars
83|%*f|	debuglog = |-123.456000|	wrote  13 chars
84|%*f|	printf =   |-123.456000|	wrote  13 chars
85|%*f|	debuglog = |-123.456000|	wrote  13 chars
86|%*f.1|	printf =   |-123.456000.1|	wrote  15 chars
87|%*f.1|	debuglog = |-123.456000.1|	wrote  15 chars
88
89...testing precision = '*'
90|%.*f|	printf =   |-123.4560000000|	wrote  17 chars
91|%.*f|	debuglog = |-123.4560000000|	wrote  17 chars
92|%.*f|	printf =   |-123.46|	wrote   9 chars
93|%.*f|	debuglog = |-123.46|	wrote   9 chars
94|%10.*f|	printf =   |   -123.46|	wrote  12 chars
95|%10.*f|	debuglog = |   -123.46|	wrote  12 chars
96
97...testing width/precision = '*'
98|%*.*f|	printf =   |          -123.45600|	wrote  22 chars
99|%*.*f|	debuglog = |          -123.45600|	wrote  22 chars
100|%*.*f|	printf =   |-123.4560|	wrote  11 chars
101|%*.*f|	debuglog = |-123.4560|	wrote  11 chars
102
103...testing left justification
104|%10f|	printf =   |  3.141500|	wrote  12 chars
105|%10f|	debuglog = |  3.141500|	wrote  12 chars
106|%-10f|	printf =   |3.141500  |	wrote  12 chars
107|%-10f|	debuglog = |3.141500  |	wrote  12 chars
108
109...testing strings
110|%s|	printf =   |abcd|	wrote   6 chars
111|%s|	debuglog = |abcd|	wrote   6 chars
112|%9s|	printf =   |     abcd|	wrote  11 chars
113|%9s|	debuglog = |     abcd|	wrote  11 chars
114|%-9s|	printf =   |abcd     |	wrote  11 chars
115|%-9s|	debuglog = |abcd     |	wrote  11 chars
116|%*s|	printf =   |  abcd|	wrote   8 chars
117|%*s|	debuglog = |  abcd|	wrote   8 chars
118
119...testing integers
120|%lld|	printf =   |-1004005|	wrote  10 chars
121|%lld|	debuglog = |-1004005|	wrote  10 chars
122|%15lld|	printf =   |       -1004005|	wrote  17 chars
123|%15lld|	debuglog = |       -1004005|	wrote  17 chars
124|%-15lld|	printf =   |-1004005       |	wrote  17 chars
125|%-15lld|	debuglog = |-1004005       |	wrote  17 chars
126|%100lld|	printf =   |                                                                                            -1004005|	wrote 102 chars
127|%100lld|	debuglog = |                                                                                            -1004005|	wrote 102 chars
128|%*lld|	printf =   |     -1004005|	wrote  15 chars
129|%*lld|	debuglog = |     -1004005|	wrote  15 chars
130|%3.0f|	printf =   |  1|	wrote   5 chars
131|%3.0f|	debuglog = |  1|	wrote   5 chars
132|%3.1f|	printf =   |1.0|	wrote   5 chars
133|%3.1f|	debuglog = |1.0|	wrote   5 chars
134|%3.2f|	printf =   |1.00|	wrote   6 chars
135|%3.2f|	debuglog = |1.00|	wrote   6 chars
136|%3.3f|	printf =   |0.997|	wrote   7 chars
137|%3.3f|	debuglog = |0.997|	wrote   7 chars
138|%3.4f|	printf =   |0.9969|	wrote   8 chars
139|%3.4f|	debuglog = |0.9969|	wrote   8 chars
140|%3.5f|	printf =   |0.99685|	wrote   9 chars
141|%3.5f|	debuglog = |0.99685|	wrote   9 chars
142