sl@0
|
1 |
// Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
// e32test\math\t_float3.cpp
|
sl@0
|
15 |
// File for T_FLOAT.CPP containing data for test5, test6, test7 and test8
|
sl@0
|
16 |
// T_FLOAT.CPP split into header files because there seems to be too much static data for GCC
|
sl@0
|
17 |
// compiler
|
sl@0
|
18 |
//
|
sl@0
|
19 |
//
|
sl@0
|
20 |
|
sl@0
|
21 |
#include "t_float.h"
|
sl@0
|
22 |
#include <e32math.h>
|
sl@0
|
23 |
|
sl@0
|
24 |
GLDEF_D DtoR_TEST64 testd2[]=
|
sl@0
|
25 |
{
|
sl@0
|
26 |
DtoR_TEST64(_L("1.000000000000000000000001"),1.0),
|
sl@0
|
27 |
DtoR_TEST64(_L("1.00000000000000000000001"),1.0),
|
sl@0
|
28 |
DtoR_TEST64(_L("1.0000000000000000000001"),1.0),
|
sl@0
|
29 |
DtoR_TEST64(_L("1.000000000000000000001"),1.0),
|
sl@0
|
30 |
DtoR_TEST64(_L("1.0000000000000000001"),1.0),
|
sl@0
|
31 |
DtoR_TEST64(_L("1.000000000000000001"),1.0),
|
sl@0
|
32 |
DtoR_TEST64(_L("1.000000000000001"),1.000000000000001),
|
sl@0
|
33 |
DtoR_TEST64(_L("1.0000000000000001E+10"),1.0000000000000002E+10),
|
sl@0
|
34 |
DtoR_TEST64(_L("1.0000000000000001E-10"),1.0E-10),
|
sl@0
|
35 |
DtoR_TEST64(_L("1.00000000000001E8"),1.00000000000001E8),
|
sl@0
|
36 |
DtoR_TEST64(_L("1.00000000000001E-8"),1.00000000000001E-8),
|
sl@0
|
37 |
//
|
sl@0
|
38 |
DtoR_TEST64(_L("1.23412341234e-7"),1.23412341234E-7),
|
sl@0
|
39 |
DtoR_TEST64(_L("0.000000123412341234"),1.23412341234E-7),
|
sl@0
|
40 |
DtoR_TEST64(_L("0.0000000123412341234"),1.23412341234E-8),
|
sl@0
|
41 |
//
|
sl@0
|
42 |
DtoR_TEST64(_L("0.29"),0.29),
|
sl@0
|
43 |
DtoR_TEST64(_L("0.2900"),0.2900),
|
sl@0
|
44 |
DtoR_TEST64(_L("0.2900"),0.29),
|
sl@0
|
45 |
//
|
sl@0
|
46 |
DtoR_TEST64(_L("0.0"),0.0),
|
sl@0
|
47 |
DtoR_TEST64(_L("1.0"),1.0),
|
sl@0
|
48 |
DtoR_TEST64(_L("10.0"),10.0),
|
sl@0
|
49 |
DtoR_TEST64(_L("100.0"),100.0),
|
sl@0
|
50 |
DtoR_TEST64(_L("1000.0"),1000.0),
|
sl@0
|
51 |
DtoR_TEST64(_L("0.1"),0.1),
|
sl@0
|
52 |
DtoR_TEST64(_L("0.01"),0.01),
|
sl@0
|
53 |
DtoR_TEST64(_L("0.001"),0.001),
|
sl@0
|
54 |
DtoR_TEST64(_L("0.0001"),0.0001),
|
sl@0
|
55 |
//
|
sl@0
|
56 |
DtoR_TEST64(_L("9.99999999999999999"),9.99999999999999999),
|
sl@0
|
57 |
DtoR_TEST64(_L("9.99999999999999"),9.99999999999999),
|
sl@0
|
58 |
DtoR_TEST64(_L("9.9999999999999"),9.9999999999999),
|
sl@0
|
59 |
DtoR_TEST64(_L("9.999999999"),9.999999999),
|
sl@0
|
60 |
//
|
sl@0
|
61 |
DtoR_TEST64(_L(".015"),0.015),
|
sl@0
|
62 |
DtoR_TEST64(_L("1.00E-15"),1.0E-15),
|
sl@0
|
63 |
DtoR_TEST64(_L("1.0E-07"),1.00E-7),
|
sl@0
|
64 |
//
|
sl@0
|
65 |
DtoR_TEST64(_L("1024.0"),1024.0),
|
sl@0
|
66 |
DtoR_TEST64(_L("1E10"),1E10),
|
sl@0
|
67 |
DtoR_TEST64(_L("1E20"),1E20),
|
sl@0
|
68 |
DtoR_TEST64(_L("1E30"),1E30),
|
sl@0
|
69 |
DtoR_TEST64(_L("1E40"),1E40),
|
sl@0
|
70 |
DtoR_TEST64(_L("1E50"),1E50),
|
sl@0
|
71 |
// DtoR_TEST64(_L("1E60"),1E60),
|
sl@0
|
72 |
DtoR_TEST64(_L("1E70"),1E70),
|
sl@0
|
73 |
DtoR_TEST64(_L("1E80"),1E80),
|
sl@0
|
74 |
DtoR_TEST64(_L("1E90"),1E90),
|
sl@0
|
75 |
DtoR_TEST64(_L("1E98"),1E98),
|
sl@0
|
76 |
// DtoR_TEST64(_L("1E99"),1E99),
|
sl@0
|
77 |
DtoR_TEST64(_L("1E100"),1E100),
|
sl@0
|
78 |
DtoR_TEST64(_L("1E200"),1E200),
|
sl@0
|
79 |
DtoR_TEST64(_L("1E300"),1E300),
|
sl@0
|
80 |
DtoR_TEST64(_L("1.7976931348623157E+308"),1.7976931348623157E+308),
|
sl@0
|
81 |
//
|
sl@0
|
82 |
DtoR_TEST64(_L("-1024.0"),-1024.0),
|
sl@0
|
83 |
DtoR_TEST64(_L("-1E10"),-1E10),
|
sl@0
|
84 |
DtoR_TEST64(_L("-1E20"),-1E20),
|
sl@0
|
85 |
DtoR_TEST64(_L("-1E30"),-1E30),
|
sl@0
|
86 |
DtoR_TEST64(_L("-1E40"),-1E40),
|
sl@0
|
87 |
DtoR_TEST64(_L("-1E50"),-1E50),
|
sl@0
|
88 |
// DtoR_TEST64(_L("-1E60"),-1E60),
|
sl@0
|
89 |
DtoR_TEST64(_L("-1E70"),-1E70),
|
sl@0
|
90 |
DtoR_TEST64(_L("-1E80"),-1E80),
|
sl@0
|
91 |
DtoR_TEST64(_L("-1E90"),-1E90),
|
sl@0
|
92 |
DtoR_TEST64(_L("-1E98"),-1E98),
|
sl@0
|
93 |
// DtoR_TEST64(_L("-1E99"),-1E99),
|
sl@0
|
94 |
DtoR_TEST64(_L("-1E100"),-1E100),
|
sl@0
|
95 |
DtoR_TEST64(_L("-1E200"),-1E200),
|
sl@0
|
96 |
DtoR_TEST64(_L("-1E300"),-1E300),
|
sl@0
|
97 |
DtoR_TEST64(_L("-1.7976931348623157E+308"),-1.7976931348623157E+308),
|
sl@0
|
98 |
//
|
sl@0
|
99 |
DtoR_TEST64(_L("123456789012345.0"),123456789012345.0),
|
sl@0
|
100 |
DtoR_TEST64(_L("12345678901234567.0"),12345678901234568.0), // 54 bits. Check we are rounding up
|
sl@0
|
101 |
DtoR_TEST64(_L("1.23456789012345"),1.23456789012345),
|
sl@0
|
102 |
DtoR_TEST64(_L("1.2345678901234567"),1.2345678901234567),
|
sl@0
|
103 |
DtoR_TEST64(_L("1.2345678901234567890"),1.2345678901234567890),
|
sl@0
|
104 |
// DtoR_TEST64(_L("1.23456789012345E+38"),1.23456789012345E+38),
|
sl@0
|
105 |
DtoR_TEST64(_L("1.2345678901234567E+38"),1.2345678901234567E+38),
|
sl@0
|
106 |
DtoR_TEST64(_L("1.23456789012345E+299"),1.23456789012345E+299),
|
sl@0
|
107 |
// DtoR_TEST64(_L("1.2345678901234567E+299"),1.2345678901234567E+299),
|
sl@0
|
108 |
// DtoR_TEST64(_L("1.23456789012345E-75"),1.23456789012345E-75),
|
sl@0
|
109 |
DtoR_TEST64(_L("1.2345678901234567E-75"),1.2345678901234567E-75),
|
sl@0
|
110 |
DtoR_TEST64(_L("1.23456789012345E-146"),1.23456789012345E-146),
|
sl@0
|
111 |
// DtoR_TEST64(_L("1.2345678901234567E-146"),1.2345678901234567E-146),
|
sl@0
|
112 |
//
|
sl@0
|
113 |
DtoR_TEST64(_L("1E-10"),1E-10),
|
sl@0
|
114 |
// DtoR_TEST64(_L("1E-20"),1E-20),
|
sl@0
|
115 |
DtoR_TEST64(_L("1E-30"),1E-30),
|
sl@0
|
116 |
// DtoR_TEST64(_L("1E-40"),1E-40),
|
sl@0
|
117 |
DtoR_TEST64(_L("1E-50"),1E-50),
|
sl@0
|
118 |
DtoR_TEST64(_L("1E-60"),1E-60),
|
sl@0
|
119 |
DtoR_TEST64(_L("1E-70"),1E-70),
|
sl@0
|
120 |
DtoR_TEST64(_L("1E-80"),1E-80),
|
sl@0
|
121 |
DtoR_TEST64(_L("1E-90"),1E-90),
|
sl@0
|
122 |
DtoR_TEST64(_L("1E-98"),1E-98),
|
sl@0
|
123 |
DtoR_TEST64(_L("1E-99"),1E-99),
|
sl@0
|
124 |
// DtoR_TEST64(_L("1E-100"),1E-100),
|
sl@0
|
125 |
// DtoR_TEST64(_L("1E-200"),1E-200),
|
sl@0
|
126 |
DtoR_TEST64(_L("1E-300"),1E-300),
|
sl@0
|
127 |
DtoR_TEST64(_L("2.2250738585072015E-308"),2.2250738585072015E-308),
|
sl@0
|
128 |
//
|
sl@0
|
129 |
DtoR_TEST64(_L("-1E-10"),-1E-10),
|
sl@0
|
130 |
// DtoR_TEST64(_L("-1E-20"),-1E-20),
|
sl@0
|
131 |
DtoR_TEST64(_L("-1E-30"),-1E-30),
|
sl@0
|
132 |
// DtoR_TEST64(_L("-1E-40"),-1E-40),
|
sl@0
|
133 |
DtoR_TEST64(_L("-1E-50"),-1E-50),
|
sl@0
|
134 |
DtoR_TEST64(_L("-1E-60"),-1E-60),
|
sl@0
|
135 |
DtoR_TEST64(_L("-1E-70"),-1E-70),
|
sl@0
|
136 |
DtoR_TEST64(_L("-1E-80"),-1E-80),
|
sl@0
|
137 |
DtoR_TEST64(_L("-1E-90"),-1E-90),
|
sl@0
|
138 |
DtoR_TEST64(_L("-1E-98"),-1E-98),
|
sl@0
|
139 |
DtoR_TEST64(_L("-1E-99"),-1E-99),
|
sl@0
|
140 |
// DtoR_TEST64(_L("-1E-100"),-1E-100),
|
sl@0
|
141 |
// DtoR_TEST64(_L("-1E-200"),-1E-200),
|
sl@0
|
142 |
DtoR_TEST64(_L("-1E-300"),-1E-300),
|
sl@0
|
143 |
DtoR_TEST64(_L("-2.2250738585072015E-308"),-2.2250738585072015E-308),
|
sl@0
|
144 |
//
|
sl@0
|
145 |
DtoR_TEST64(_L("+1.23"),1.23),
|
sl@0
|
146 |
DtoR_TEST64(_L("003.45"),3.45),
|
sl@0
|
147 |
DtoR_TEST64(_L("0.0000000000000015"),1.5E-15),
|
sl@0
|
148 |
// DtoR_TEST64(_L("1.234e-40"),1.234E-40)
|
sl@0
|
149 |
};
|
sl@0
|
150 |
|
sl@0
|
151 |
GLDEF_D TUint size_testd2=sizeof(testd2);
|
sl@0
|
152 |
|
sl@0
|
153 |
GLDEF_D DtoR_TEST64 testApprox[]=
|
sl@0
|
154 |
{
|
sl@0
|
155 |
|
sl@0
|
156 |
DtoR_TEST64(_L("1.23412341234e-11"),1.23412341234E-11),
|
sl@0
|
157 |
DtoR_TEST64(_L("0.0000000000123412341234"),1.23412341234E-11),
|
sl@0
|
158 |
|
sl@0
|
159 |
// Pow10() exact
|
sl@0
|
160 |
DtoR_TEST64(_L("1.2345678901234567E-146"),1.2345678901234567E-146),
|
sl@0
|
161 |
|
sl@0
|
162 |
// Pow10() inexact
|
sl@0
|
163 |
DtoR_TEST64(_L("1E-40"),1E-40),
|
sl@0
|
164 |
DtoR_TEST64(_L("-1E-40"),-1E-40),
|
sl@0
|
165 |
DtoR_TEST64(_L("1E60"),1E60),
|
sl@0
|
166 |
DtoR_TEST64(_L("-1E60"),-1E60),
|
sl@0
|
167 |
DtoR_TEST64(_L("1E-20"),1E-20),
|
sl@0
|
168 |
DtoR_TEST64(_L("-1E-20"),-1E-20),
|
sl@0
|
169 |
DtoR_TEST64(_L("1E99"),1E99),
|
sl@0
|
170 |
DtoR_TEST64(_L("-1E99"),-1E99),
|
sl@0
|
171 |
DtoR_TEST64(_L("1.2345678901234567E+299"),1.2345678901234567E+299),
|
sl@0
|
172 |
DtoR_TEST64(_L("1.23456789012345E-75"),1.23456789012345E-75),
|
sl@0
|
173 |
DtoR_TEST64(_L("1E-100"),1E-100),
|
sl@0
|
174 |
DtoR_TEST64(_L("-1E-100"),-1E-100),
|
sl@0
|
175 |
DtoR_TEST64(_L("1E-200"),1E-200),
|
sl@0
|
176 |
DtoR_TEST64(_L("-1E-200"),-1E-200),
|
sl@0
|
177 |
DtoR_TEST64(_L("1.234e-40"),1.234E-40),
|
sl@0
|
178 |
DtoR_TEST64(_L("1.23456789012345E+38"),1.23456789012345E+38),
|
sl@0
|
179 |
};
|
sl@0
|
180 |
|
sl@0
|
181 |
GLDEF_D TUint size_testApprox=sizeof(testApprox);
|
sl@0
|
182 |
|
sl@0
|
183 |
GLDEF_D DtoR_TEST32 testd32[]=
|
sl@0
|
184 |
{
|
sl@0
|
185 |
DtoR_TEST32(_L("0.29"),0.29f),
|
sl@0
|
186 |
//
|
sl@0
|
187 |
DtoR_TEST32(_L("0.0"),0.0f),
|
sl@0
|
188 |
DtoR_TEST32(_L("1.0"),1.0f),
|
sl@0
|
189 |
DtoR_TEST32(_L("10.0"),10.0f),
|
sl@0
|
190 |
DtoR_TEST32(_L("100.0"),100.0f),
|
sl@0
|
191 |
DtoR_TEST32(_L("1000.0"),1000.0f),
|
sl@0
|
192 |
DtoR_TEST32(_L("0.1"),0.1f),
|
sl@0
|
193 |
DtoR_TEST32(_L("0.01"),0.01f),
|
sl@0
|
194 |
DtoR_TEST32(_L("0.001"),0.001f),
|
sl@0
|
195 |
DtoR_TEST32(_L("0.0001"),0.0001f),
|
sl@0
|
196 |
//
|
sl@0
|
197 |
DtoR_TEST32(_L("9.99999999999999"),10.0f),
|
sl@0
|
198 |
DtoR_TEST32(_L("9.9999999"),9.99999999f),
|
sl@0
|
199 |
DtoR_TEST32(_L("9.9999"),9.9999f),
|
sl@0
|
200 |
//
|
sl@0
|
201 |
DtoR_TEST32(_L(".015"),0.015f),
|
sl@0
|
202 |
DtoR_TEST32(_L("1.00E-15"),1.0E-15f),
|
sl@0
|
203 |
DtoR_TEST32(_L("1.0E-07"),1.0E-7f),
|
sl@0
|
204 |
//
|
sl@0
|
205 |
DtoR_TEST32(_L("1024.0"),1024.0f),
|
sl@0
|
206 |
DtoR_TEST32(_L("1E10"),1E10f),
|
sl@0
|
207 |
DtoR_TEST32(_L("1E20"),1E+20f),
|
sl@0
|
208 |
DtoR_TEST32(_L("1E30"),1E30f),
|
sl@0
|
209 |
DtoR_TEST32(_L("3.40282356E+38"),KMaxTReal32),
|
sl@0
|
210 |
//
|
sl@0
|
211 |
DtoR_TEST32(_L("-1024.0"),-1024.0f),
|
sl@0
|
212 |
DtoR_TEST32(_L("-1E10"),-1E10f),
|
sl@0
|
213 |
DtoR_TEST32(_L("-1E20"),-1E20f),
|
sl@0
|
214 |
DtoR_TEST32(_L("-1E30"),-1E+30f),
|
sl@0
|
215 |
DtoR_TEST32(_L("-3.40282356E+38"),-KMaxTReal32),
|
sl@0
|
216 |
//
|
sl@0
|
217 |
DtoR_TEST32(_L("1234567.0"),1234567.0f),
|
sl@0
|
218 |
DtoR_TEST32(_L("1234567890.0"),1234567890.0f),
|
sl@0
|
219 |
DtoR_TEST32(_L("1.234567"),1.234567f),
|
sl@0
|
220 |
DtoR_TEST32(_L("1.234567890"),1.234567890f),
|
sl@0
|
221 |
DtoR_TEST32(_L("1.23456789012"),1.23456789012f),
|
sl@0
|
222 |
DtoR_TEST32(_L("1.23456E+38"),1.23456E+38f),
|
sl@0
|
223 |
DtoR_TEST32(_L("1.23456789E+38"),1.23456789E+38f),
|
sl@0
|
224 |
DtoR_TEST32(_L("1.23456E-13"),1.23456E-13f),
|
sl@0
|
225 |
DtoR_TEST32(_L("1.23456789012E-13"),1.23456789012E-13f),
|
sl@0
|
226 |
//
|
sl@0
|
227 |
DtoR_TEST32(_L("1E-10"),1E-10f),
|
sl@0
|
228 |
DtoR_TEST32(_L("1E-20"),1E-20f),
|
sl@0
|
229 |
DtoR_TEST32(_L("1E-30"),1E-30f),
|
sl@0
|
230 |
DtoR_TEST32(_L("1.17549436e-38"),1.17549436e-38f),
|
sl@0
|
231 |
//
|
sl@0
|
232 |
DtoR_TEST32(_L("-1E-10"),-1E-10f),
|
sl@0
|
233 |
DtoR_TEST32(_L("-1E-20"),-1E-20f),
|
sl@0
|
234 |
DtoR_TEST32(_L("-1E-30"),-1E-30f),
|
sl@0
|
235 |
DtoR_TEST32(_L("-1.17549436e-38"),-1.17549436e-38f),
|
sl@0
|
236 |
//
|
sl@0
|
237 |
DtoR_TEST32(_L("+1.23"),1.23f),
|
sl@0
|
238 |
DtoR_TEST32(_L("003.45"),3.45f),
|
sl@0
|
239 |
DtoR_TEST32(_L("0.0000000000000015"),1.5E-15f),
|
sl@0
|
240 |
DtoR_TEST32(_L("1.234e-4"),1.234E-4f)
|
sl@0
|
241 |
};
|
sl@0
|
242 |
|
sl@0
|
243 |
GLDEF_D TUint size_testd32=sizeof(testd32);
|
sl@0
|
244 |
|
sl@0
|
245 |
GLDEF_D DtoR_ERR_TEST testerr3[]=
|
sl@0
|
246 |
{
|
sl@0
|
247 |
DtoR_ERR_TEST(KNullDesC,KErrGeneral),
|
sl@0
|
248 |
DtoR_ERR_TEST(_L("E-20"),KErrGeneral),
|
sl@0
|
249 |
DtoR_ERR_TEST(_L("1.#INF"),KErrNone),
|
sl@0
|
250 |
DtoR_ERR_TEST(_L("1.#NAN"),KErrNone),
|
sl@0
|
251 |
DtoR_ERR_TEST(_L("c.fgh"),KErrGeneral),
|
sl@0
|
252 |
DtoR_ERR_TEST(_L("xyz"),KErrGeneral),
|
sl@0
|
253 |
DtoR_ERR_TEST(_L("1.0E"),KErrNone),
|
sl@0
|
254 |
DtoR_ERR_TEST(_L("1.0E2147483648"),KErrOverflow),
|
sl@0
|
255 |
DtoR_ERR_TEST(_L("1.234567801234567890E+38"),KErrNone),
|
sl@0
|
256 |
DtoR_ERR_TEST(_L("3.456789012345678901E-38"),KErrNone),
|
sl@0
|
257 |
DtoR_ERR_TEST(_L("3.4028236E+38"),KErrOverflow),
|
sl@0
|
258 |
DtoR_ERR_TEST(_L("1.1754943E-38"),KErrNone),
|
sl@0
|
259 |
DtoR_ERR_TEST(_L("1.0E-38"),KErrNone),
|
sl@0
|
260 |
DtoR_ERR_TEST(_L("4.0E+38"),KErrOverflow),
|
sl@0
|
261 |
DtoR_ERR_TEST(_L("1.0E-39"),KErrNone),
|
sl@0
|
262 |
DtoR_ERR_TEST(_L("1.0E+39"),KErrOverflow),
|
sl@0
|
263 |
DtoR_ERR_TEST(_L("3.0E40"),KErrOverflow),
|
sl@0
|
264 |
DtoR_ERR_TEST(_L("6.9E-46"),KErrUnderflow),
|
sl@0
|
265 |
DtoR_ERR_TEST(_L("1.0E-325"),KErrUnderflow),
|
sl@0
|
266 |
DtoR_ERR_TEST(_L("2.0E-400"),KErrUnderflow),
|
sl@0
|
267 |
DtoR_ERR_TEST(_L("2.0E+400"),KErrOverflow),
|
sl@0
|
268 |
};
|
sl@0
|
269 |
|
sl@0
|
270 |
GLDEF_D TUint size_testerr3=sizeof(testerr3);
|
sl@0
|
271 |
|
sl@0
|
272 |
GLDEF_D CALC_TEST calctest[]=
|
sl@0
|
273 |
{
|
sl@0
|
274 |
CALC_TEST(_L("1.23412341234"),KRealFormatCalculator,20,12,'.',',',0,_S("1.23412341234")),
|
sl@0
|
275 |
CALC_TEST(_L("0.123412341234"),KRealFormatCalculator,20,12,'.',',',0,_S("1.23412341234E-01")),
|
sl@0
|
276 |
CALC_TEST(_L("0.0123412341234"),KRealFormatCalculator,20,12,'.',',',0,_S("1.23412341234E-02")),
|
sl@0
|
277 |
CALC_TEST(_L("0.00123412341234"),KRealFormatCalculator,20,12,'.',',',0,_S("1.23412341234E-03")),
|
sl@0
|
278 |
CALC_TEST(_L("0.000123412341234"),KRealFormatCalculator,20,12,'.',',',0,_S("1.23412341234E-04")),
|
sl@0
|
279 |
CALC_TEST(_L("0.0000123412341234"),KRealFormatCalculator,20,12,'.',',',0,_S("1.23412341234E-05")),
|
sl@0
|
280 |
CALC_TEST(_L("0.00000123412341234"),KRealFormatCalculator,20,12,'.',',',0,_S("1.23412341234E-06")),
|
sl@0
|
281 |
CALC_TEST(_L("0.000000123412341234"),KRealFormatCalculator,20,12,'.',',',0,_S("1.23412341234E-07")),
|
sl@0
|
282 |
CALC_TEST(_L("0.0000000123412341234"),KRealFormatCalculator,20,12,'.',',',0,_S("1.23412341234E-08")),
|
sl@0
|
283 |
CALC_TEST(_L("0.00000000123412341234"),KRealFormatCalculator,20,12,'.',',',0,_S("1.23412341234E-09")),
|
sl@0
|
284 |
CALC_TEST(_L("0.000000000123412341234"),KRealFormatCalculator,20,12,'.',',',0,_S("1.23412341234E-10")),
|
sl@0
|
285 |
CALC_TEST(_L("0.0000000000123412341234"),KRealFormatCalculator,20,12,'.',',',0,_S("1.23412341234E-11")),
|
sl@0
|
286 |
CALC_TEST(_L("0.00000000000123412341234"),KRealFormatCalculator,20,12,'.',',',0,_S("1.23412341234E-12")),
|
sl@0
|
287 |
CALC_TEST(_L("1.23412341234E-7"),KRealFormatCalculator,20,12,'.',',',0,_S("1.23412341234E-07")),
|
sl@0
|
288 |
CALC_TEST(_L("1.23412341234E-8"),KRealFormatCalculator,20,12,'.',',',0,_S("1.23412341234E-08")),
|
sl@0
|
289 |
CALC_TEST(_L("1.23412341234E-9"),KRealFormatCalculator,20,12,'.',',',0,_S("1.23412341234E-09")),
|
sl@0
|
290 |
CALC_TEST(_L("1.23412341234E-10"),KRealFormatCalculator,20,12,'.',',',0,_S("1.23412341234E-10")),
|
sl@0
|
291 |
CALC_TEST(_L("1.23412341234E-11"),KRealFormatCalculator,20,12,'.',',',0,_S("1.23412341234E-11")),
|
sl@0
|
292 |
CALC_TEST(_L("1.23412341234E-12"),KRealFormatCalculator,20,12,'.',',',0,_S("1.23412341234E-12")),
|
sl@0
|
293 |
CALC_TEST(_L("0.00000000000000"),KRealFormatCalculator,20,12,'.',',',0,_S("0")),
|
sl@0
|
294 |
CALC_TEST(_L("0.000000000000009999999999999"),KRealFormatCalculator,20,12,'.',',',0,_S("1E-14")),
|
sl@0
|
295 |
CALC_TEST(_L("0.000000000000000000009999999999999"),KRealFormatCalculator,20,12,'.',',',0,_S("1E-20")),
|
sl@0
|
296 |
CALC_TEST(_L("999999999999.5"),KRealFormatCalculator,20,12,'.',',',0,_S("1E+12")),
|
sl@0
|
297 |
CALC_TEST(_L("999999999999.4"),KRealFormatCalculator,20,12,'.',',',0,_S("999999999999")),
|
sl@0
|
298 |
CALC_TEST(_L("1.234123412341"),KRealFormatCalculator,20,12,'.',',',0,_S("1.23412341234")),
|
sl@0
|
299 |
CALC_TEST(_L("0.123412341234"),KRealFormatCalculator,20,12,'.',',',0,_S("1.23412341234E-01")),
|
sl@0
|
300 |
CALC_TEST(_L("0.012341234123"),KRealFormatCalculator,20,12,'.',',',0,_S("1.2341234123E-02")),
|
sl@0
|
301 |
CALC_TEST(_L("0.001234123412"),KRealFormatCalculator,20,12,'.',',',0,_S("1.234123412E-03")),
|
sl@0
|
302 |
CALC_TEST(_L("0.000123412341"),KRealFormatCalculator,20,12,'.',',',0,_S("1.23412341E-04")),
|
sl@0
|
303 |
CALC_TEST(_L("0.000012341234"),KRealFormatCalculator,20,12,'.',',',0,_S("1.2341234E-05")),
|
sl@0
|
304 |
CALC_TEST(_L("0.000001234123"),KRealFormatCalculator,20,12,'.',',',0,_S("1.234123E-06")),
|
sl@0
|
305 |
CALC_TEST(_L("0.000000123412"),KRealFormatCalculator,20,12,'.',',',0,_S("1.23412E-07")),
|
sl@0
|
306 |
CALC_TEST(_L("0.000000012341"),KRealFormatCalculator,20,12,'.',',',0,_S("1.2341E-08")),
|
sl@0
|
307 |
CALC_TEST(_L("0.000000001234"),KRealFormatCalculator,20,12,'.',',',0,_S("1.234E-09")),
|
sl@0
|
308 |
CALC_TEST(_L("0.000000000123"),KRealFormatCalculator,20,12,'.',',',0,_S("1.23E-10")),
|
sl@0
|
309 |
CALC_TEST(_L("0.000000000012"),KRealFormatCalculator,20,12,'.',',',0,_S("1.2E-11")),
|
sl@0
|
310 |
CALC_TEST(_L("0.000000000001"),KRealFormatCalculator,20,12,'.',',',0,_S("1E-12")),
|
sl@0
|
311 |
CALC_TEST(_L("0.12341234123"),KRealFormatCalculator,20,12,'.',',',0,_S("0.12341234123")),
|
sl@0
|
312 |
CALC_TEST(_L("0.01234123412"),KRealFormatCalculator,20,12,'.',',',0,_S("0.01234123412")),
|
sl@0
|
313 |
CALC_TEST(_L("0.00123412341"),KRealFormatCalculator,20,12,'.',',',0,_S("0.00123412341")),
|
sl@0
|
314 |
CALC_TEST(_L("0.00012341234"),KRealFormatCalculator,20,12,'.',',',0,_S("0.00012341234")),
|
sl@0
|
315 |
CALC_TEST(_L("0.00001234123"),KRealFormatCalculator,20,12,'.',',',0,_S("0.00001234123")),
|
sl@0
|
316 |
CALC_TEST(_L("0.00000123412"),KRealFormatCalculator,20,12,'.',',',0,_S("0.00000123412")),
|
sl@0
|
317 |
CALC_TEST(_L("0.00000012341"),KRealFormatCalculator,20,12,'.',',',0,_S("0.00000012341")),
|
sl@0
|
318 |
CALC_TEST(_L("0.00000001234"),KRealFormatCalculator,20,12,'.',',',0,_S("0.00000001234")),
|
sl@0
|
319 |
CALC_TEST(_L("0.00000000123"),KRealFormatCalculator,20,12,'.',',',0,_S("0.00000000123")),
|
sl@0
|
320 |
CALC_TEST(_L("0.00000000012"),KRealFormatCalculator,20,12,'.',',',0,_S("0.00000000012")),
|
sl@0
|
321 |
CALC_TEST(_L("0.00000000001"),KRealFormatCalculator,20,12,'.',',',0,_S("0.00000000001")),
|
sl@0
|
322 |
CALC_TEST(_L("0.000000000001"),KRealFormatCalculator,20,12,'.',',',0,_S("1E-12")),
|
sl@0
|
323 |
CALC_TEST(_L("-1.234E19"),KRealFormatCalculator,20,12,'.',',',0,_S("-1.234E+19")),
|
sl@0
|
324 |
};
|
sl@0
|
325 |
|
sl@0
|
326 |
GLDEF_D TUint size_calctest=sizeof(calctest);
|
sl@0
|
327 |
|
sl@0
|
328 |
|
sl@0
|
329 |
|
sl@0
|
330 |
|