Debian Codegraph @

runtime/gdtoa/test/x.ou1

raw
1
2 Input: 1.23
3
4 strtox consumes 4 bytes and returns 33
5 with bits = #3fff 9d70 a3d7 a3d 70a4
6 printf("%.21Lg") gives 1.23000000000000000002
7 g_xfmt(0) gives 4 bytes: "1.23"
8
9 strtoIx returns 33, consuming 4 bytes.
10 fI[0] = #3fff 9d70 a3d7 a3d 70a3
11 = 1.22999999999999999991
12 fI[1] = #3fff 9d70 a3d7 a3d 70a4
13 = 1.23000000000000000002
14 fI[1] == strtox
15
16
17 Input: 1.23e+20
18
19 strtox consumes 8 bytes and returns 1
20 with bits = #4041 d55e f90a 2da1 8000
21 printf("%.21Lg") gives 123000000000000000000
22 g_xfmt(0) gives 8 bytes: "1.23e+20"
23
24 strtoIx returns 1, consuming 8 bytes.
25 fI[0] == fI[1] == strtox
26
27
28 Input: 1.23e-20
29
30 strtox consumes 8 bytes and returns 17
31 with bits = #3fbc e857 267b b3a9 84f2
32 printf("%.21Lg") gives 1.22999999999999999997e-20
33 g_xfmt(0) gives 8 bytes: "1.23e-20"
34
35 strtoIx returns 17, consuming 8 bytes.
36 fI[0] = #3fbc e857 267b b3a9 84f2
37 = 1.22999999999999999997e-20
38 fI[1] = #3fbc e857 267b b3a9 84f3
39 = 1.23000000000000000004e-20
40 fI[0] == strtox
41
42
43 Input: 1.23456789
44
45 strtox consumes 10 bytes and returns 33
46 with bits = #3fff 9e06 5214 1ef0 dbf6
47 printf("%.21Lg") gives 1.23456789000000000003
48 g_xfmt(0) gives 10 bytes: "1.23456789"
49
50 strtoIx returns 33, consuming 10 bytes.
51 fI[0] = #3fff 9e06 5214 1ef0 dbf5
52 = 1.23456788999999999992
53 fI[1] = #3fff 9e06 5214 1ef0 dbf6
54 = 1.23456789000000000003
55 fI[1] == strtox
56
57
58 Input: 1.23456589e+20
59
60 strtox consumes 14 bytes and returns 1
61 with bits = #4041 d629 bd33 5cc ba00
62 printf("%.21Lg") gives 123456589000000000000
63 g_xfmt(0) gives 14 bytes: "1.23456589e+20"
64
65 strtoIx returns 1, consuming 14 bytes.
66 fI[0] == fI[1] == strtox
67
68
69 Input: 1.23e+30
70
71 strtox consumes 8 bytes and returns 17
72 with bits = #4062 f865 8274 7dbc 824a
73 printf("%.21Lg") gives 1.22999999999999999999e+30
74 g_xfmt(0) gives 8 bytes: "1.23e+30"
75
76 strtoIx returns 17, consuming 8 bytes.
77 fI[0] = #4062 f865 8274 7dbc 824a
78 = 1.22999999999999999999e+30
79 fI[1] = #4062 f865 8274 7dbc 824b
80 = 1.23000000000000000006e+30
81 fI[0] == strtox
82
83
84 Input: 1.23e-30
85
86 strtox consumes 8 bytes and returns 17
87 with bits = #3f9b c794 337a 8085 54eb
88 printf("%.21Lg") gives 1.22999999999999999999e-30
89 g_xfmt(0) gives 8 bytes: "1.23e-30"
90
91 strtoIx returns 17, consuming 8 bytes.
92 fI[0] = #3f9b c794 337a 8085 54eb
93 = 1.22999999999999999999e-30
94 fI[1] = #3f9b c794 337a 8085 54ec
95 = 1.23000000000000000007e-30
96 fI[0] == strtox
97
98
99 Input: 1.23456789e-20
100
101 strtox consumes 14 bytes and returns 17
102 with bits = #3fbc e934 a38 f3d6 d352
103 printf("%.21Lg") gives 1.23456788999999999998e-20
104 g_xfmt(0) gives 14 bytes: "1.23456789e-20"
105
106 strtoIx returns 17, consuming 14 bytes.
107 fI[0] = #3fbc e934 a38 f3d6 d352
108 = 1.23456788999999999998e-20
109 fI[1] = #3fbc e934 a38 f3d6 d353
110 = 1.23456789000000000005e-20
111 fI[0] == strtox
112
113
114 Input: 1.23456789e-30
115
116 strtox consumes 14 bytes and returns 17
117 with bits = #3f9b c851 f19d decc a8fc
118 printf("%.21Lg") gives 1.23456788999999999999e-30
119 g_xfmt(0) gives 14 bytes: "1.23456789e-30"
120
121 strtoIx returns 17, consuming 14 bytes.
122 fI[0] = #3f9b c851 f19d decc a8fc
123 = 1.23456788999999999999e-30
124 fI[1] = #3f9b c851 f19d decc a8fd
125 = 1.23456789000000000007e-30
126 fI[0] == strtox
127
128
129 Input: 1.234567890123456789
130
131 strtox consumes 20 bytes and returns 17
132 with bits = #3fff 9e06 5214 62cf db8d
133 printf("%.21Lg") gives 1.23456789012345678899
134 g_xfmt(0) gives 20 bytes: "1.234567890123456789"
135
136 strtoIx returns 17, consuming 20 bytes.
137 fI[0] = #3fff 9e06 5214 62cf db8d
138 = 1.23456789012345678899
139 fI[1] = #3fff 9e06 5214 62cf db8e
140 = 1.23456789012345678909
141 fI[0] == strtox
142
143
144 Input: 1.23456789012345678901234567890123456789
145
146 strtox consumes 40 bytes and returns 17
147 with bits = #3fff 9e06 5214 62cf db8d
148 printf("%.21Lg") gives 1.23456789012345678899
149 g_xfmt(0) gives 20 bytes: "1.234567890123456789"
150
151 strtoIx returns 17, consuming 40 bytes.
152 fI[0] = #3fff 9e06 5214 62cf db8d
153 = 1.23456789012345678899
154 fI[1] = #3fff 9e06 5214 62cf db8e
155 = 1.23456789012345678909
156 fI[0] == strtox
157
158
159 Input: 1.23e306
160
161 strtox consumes 8 bytes and returns 17
162 with bits = #43f7 e033 b668 e30f a6d5
163 printf("%.21Lg") gives 1.22999999999999999997e+306
164 g_xfmt(0) gives 9 bytes: "1.23e+306"
165
166 strtoIx returns 17, consuming 8 bytes.
167 fI[0] = #43f7 e033 b668 e30f a6d5
168 = 1.22999999999999999997e+306
169 fI[1] = #43f7 e033 b668 e30f a6d6
170 = 1.23000000000000000005e+306
171 fI[0] == strtox
172
173
174 Input: 1.23e-306
175
176 strtox consumes 9 bytes and returns 33
177 with bits = #3c06 dd1d c2ed 1cb7 3f25
178 printf("%.21Lg") gives 1.23000000000000000002e-306
179 g_xfmt(0) gives 9 bytes: "1.23e-306"
180
181 strtoIx returns 33, consuming 9 bytes.
182 fI[0] = #3c06 dd1d c2ed 1cb7 3f24
183 = 1.22999999999999999995e-306
184 fI[1] = #3c06 dd1d c2ed 1cb7 3f25
185 = 1.23000000000000000002e-306
186 fI[1] == strtox
187
188
189 Input: 1.23e-320
190
191 strtox consumes 9 bytes and returns 33
192 with bits = #3bd8 9b98 c371 844c 3f1a
193 printf("%.21Lg") gives 1.23000000000000000002e-320
194 g_xfmt(0) gives 9 bytes: "1.23e-320"
195
196 strtoIx returns 33, consuming 9 bytes.
197 fI[0] = #3bd8 9b98 c371 844c 3f19
198 = 1.22999999999999999991e-320
199 fI[1] = #3bd8 9b98 c371 844c 3f1a
200 = 1.23000000000000000002e-320
201 fI[1] == strtox
202
203
204 Input: 1.23e-20
205
206 strtox consumes 8 bytes and returns 17
207 with bits = #3fbc e857 267b b3a9 84f2
208 printf("%.21Lg") gives 1.22999999999999999997e-20
209 g_xfmt(0) gives 8 bytes: "1.23e-20"
210
211 strtoIx returns 17, consuming 8 bytes.
212 fI[0] = #3fbc e857 267b b3a9 84f2
213 = 1.22999999999999999997e-20
214 fI[1] = #3fbc e857 267b b3a9 84f3
215 = 1.23000000000000000004e-20
216 fI[0] == strtox
217
218
219 Input: 1.23456789e307
220
221 strtox consumes 14 bytes and returns 17
222 with bits = #43fb 8ca5 8a5e d766 de75
223 printf("%.21Lg") gives 1.23456788999999999998e+307
224 g_xfmt(0) gives 15 bytes: "1.23456789e+307"
225
226 strtoIx returns 17, consuming 14 bytes.
227 fI[0] = #43fb 8ca5 8a5e d766 de75
228 = 1.23456788999999999998e+307
229 fI[1] = #43fb 8ca5 8a5e d766 de76
230 = 1.23456789000000000011e+307
231 fI[0] == strtox
232
233
234 Input: 1.23456589e-307
235
236 strtox consumes 15 bytes and returns 17
237 with bits = #3c03 b18c b5dc c22f d369
238 printf("%.21Lg") gives 1.23456588999999999999e-307
239 g_xfmt(0) gives 15 bytes: "1.23456589e-307"
240
241 strtoIx returns 17, consuming 15 bytes.
242 fI[0] = #3c03 b18c b5dc c22f d369
243 = 1.23456588999999999999e-307
244 fI[1] = #3c03 b18c b5dc c22f d36a
245 = 1.23456589000000000009e-307
246 fI[0] == strtox
247
248
249 Input: 1.234567890123456789
250
251 strtox consumes 20 bytes and returns 17
252 with bits = #3fff 9e06 5214 62cf db8d
253 printf("%.21Lg") gives 1.23456789012345678899
254 g_xfmt(0) gives 20 bytes: "1.234567890123456789"
255
256 strtoIx returns 17, consuming 20 bytes.
257 fI[0] = #3fff 9e06 5214 62cf db8d
258 = 1.23456789012345678899
259 fI[1] = #3fff 9e06 5214 62cf db8e
260 = 1.23456789012345678909
261 fI[0] == strtox
262
263
264 Input: 1.234567890123456789e301
265
266 strtox consumes 24 bytes and returns 33
267 with bits = #43e7 937a 8baf ab20 980c
268 printf("%.21Lg") gives 1.234567890123456789e+301
269 g_xfmt(0) gives 25 bytes: "1.234567890123456789e+301"
270
271 strtoIx returns 33, consuming 24 bytes.
272 fI[0] = #43e7 937a 8baf ab20 980b
273 = 1.23456789012345678889e+301
274 fI[1] = #43e7 937a 8baf ab20 980c
275 = 1.234567890123456789e+301
276 fI[1] == strtox
277
278
279 Input: 1.234567890123456789e-301
280
281 strtox consumes 25 bytes and returns 33
282 with bits = #3c17 a953 271a 5d06 9ad9
283 printf("%.21Lg") gives 1.23456789012345678902e-301
284 g_xfmt(0) gives 25 bytes: "1.234567890123456789e-301"
285
286 strtoIx returns 33, consuming 25 bytes.
287 fI[0] = #3c17 a953 271a 5d06 9ad8
288 = 1.23456789012345678892e-301
289 fI[1] = #3c17 a953 271a 5d06 9ad9
290 = 1.23456789012345678902e-301
291 fI[1] == strtox
292
293
294 Input: 1.234567890123456789e-321
295
296 strtox consumes 25 bytes and returns 33
297 with bits = #3bd4 f9e1 1b4c ea6d cce9
298 printf("%.21Lg") gives 1.234567890123456789e-321
299 g_xfmt(0) gives 25 bytes: "1.234567890123456789e-321"
300
301 strtoIx returns 33, consuming 25 bytes.
302 fI[0] = #3bd4 f9e1 1b4c ea6d cce8
303 = 1.23456789012345678893e-321
304 fI[1] = #3bd4 f9e1 1b4c ea6d cce9
305 = 1.234567890123456789e-321
306 fI[1] == strtox
307
308
309 Input: 1e23
310
311 strtox consumes 4 bytes and returns 1
312 with bits = #404b a968 163f a57 b400
313 printf("%.21Lg") gives 1e+23
314 g_xfmt(0) gives 5 bytes: "1e+23"
315
316 strtoIx returns 1, consuming 4 bytes.
317 fI[0] == fI[1] == strtox
318
319
320 Input: 1e310
321
322 strtox consumes 5 bytes and returns 33
323 with bits = #4404 de81 e40a 34b cf50
324 printf("%.21Lg") gives 1e+310
325 g_xfmt(0) gives 6 bytes: "1e+310"
326
327 strtoIx returns 33, consuming 5 bytes.
328 fI[0] = #4404 de81 e40a 34b cf4f
329 = 9.9999999999999999994e+309
330 fI[1] = #4404 de81 e40a 34b cf50
331 = 1e+310
332 fI[1] == strtox
333
334
335 Input: 9.0259718793241475e-277
336
337 strtox consumes 23 bytes and returns 33
338 with bits = #3c69 ffff ffff ffff fcf7
339 printf("%.21Lg") gives 9.02597187932414750016e-277
340 g_xfmt(0) gives 23 bytes: "9.0259718793241475e-277"
341
342 strtoIx returns 33, consuming 23 bytes.
343 fI[0] = #3c69 ffff ffff ffff fcf6
344 = 9.02597187932414749967e-277
345 fI[1] = #3c69 ffff ffff ffff fcf7
346 = 9.02597187932414750016e-277
347 fI[1] == strtox
348
349
350 Input: 9.025971879324147880346310405869e-277
351
352 strtox consumes 37 bytes and returns 17
353 with bits = #3c6a 8000 0 0 0
354 printf("%.21Lg") gives 9.02597187932414788035e-277
355 g_xfmt(0) gives 26 bytes: "9.0259718793241478803e-277"
356
357 strtoIx returns 17, consuming 37 bytes.
358 fI[0] = #3c6a 8000 0 0 0
359 = 9.02597187932414788035e-277
360 fI[1] = #3c6a 8000 0 0 1
361 = 9.02597187932414788132e-277
362 fI[0] == strtox
363
364
365 Input: 9.025971879324147880346310405868e-277
366
367 strtox consumes 37 bytes and returns 33
368 with bits = #3c6a 8000 0 0 0
369 printf("%.21Lg") gives 9.02597187932414788035e-277
370 g_xfmt(0) gives 26 bytes: "9.0259718793241478803e-277"
371
372 strtoIx returns 33, consuming 37 bytes.
373 fI[0] = #3c69 ffff ffff ffff ffff
374 = 9.02597187932414787986e-277
375 fI[1] = #3c6a 8000 0 0 0
376 = 9.02597187932414788035e-277
377 fI[1] == strtox
378
379
380 Input: 2.2250738585072014e-308
381
382 strtox consumes 23 bytes and returns 17
383 with bits = #3c01 8000 0 0 46
384 printf("%.21Lg") gives 2.22507385850720139998e-308
385 g_xfmt(0) gives 23 bytes: "2.2250738585072014e-308"
386
387 strtoIx returns 17, consuming 23 bytes.
388 fI[0] = #3c01 8000 0 0 46
389 = 2.22507385850720139998e-308
390 fI[1] = #3c01 8000 0 0 47
391 = 2.22507385850720140022e-308
392 fI[0] == strtox
393
394
395 Input: 2.2250738585072013e-308
396
397 strtox consumes 23 bytes and returns 17
398 with bits = #3c00 ffff ffff ffff fd4f
399 printf("%.21Lg") gives 2.22507385850720129998e-308
400 g_xfmt(0) gives 23 bytes: "2.2250738585072013e-308"
401
402 strtoIx returns 17, consuming 23 bytes.
403 fI[0] = #3c00 ffff ffff ffff fd4f
404 = 2.22507385850720129998e-308
405 fI[1] = #3c00 ffff ffff ffff fd50
406 = 2.2250738585072013001e-308
407 fI[0] == strtox
408
409
410 Input: 3.2649476e14
411
412 strtox consumes 12 bytes and returns 1
413 with bits = #402f 9478 fe18 6d00 0
414 printf("%.21Lg") gives 326494760000000
415 g_xfmt(0) gives 13 bytes: "3.2649476e+14"
416
417 strtoIx returns 1, consuming 12 bytes.
418 fI[0] == fI[1] == strtox
419
420 Rounding mode for strtor... changed from 1 (nearest) to 0 (toward zero)
421
422 Input: 1.1
423
424 strtox consumes 3 bytes and returns 17
425 with bits = #3fff 8ccc cccc cccc cccc
426 printf("%.21Lg") gives 1.09999999999999999991
427 g_xfmt(0) gives 21 bytes: "1.0999999999999999999"
428
429 strtoIx returns 33, consuming 3 bytes.
430 fI[0] = #3fff 8ccc cccc cccc cccc
431 = 1.09999999999999999991
432 fI[1] = #3fff 8ccc cccc cccc cccd
433 = 1.10000000000000000002
434 fI[0] == strtox
435
436
437 Input: -1.1
438
439 strtox consumes 4 bytes and returns 25
440 with bits = #bfff 8ccc cccc cccc cccc
441 printf("%.21Lg") gives -1.09999999999999999991
442 g_xfmt(0) gives 22 bytes: "-1.0999999999999999999"
443
444 strtoIx returns 41, consuming 4 bytes.
445 fI[0] = #bfff 8ccc cccc cccc cccd
446 = -1.10000000000000000002
447 fI[1] = #bfff 8ccc cccc cccc cccc
448 = -1.09999999999999999991
449 fI[1] == strtox
450
451
452 Input: 1.2
453
454 strtox consumes 3 bytes and returns 17
455 with bits = #3fff 9999 9999 9999 9999
456 printf("%.21Lg") gives 1.19999999999999999993
457 g_xfmt(0) gives 21 bytes: "1.1999999999999999999"
458
459 strtoIx returns 33, consuming 3 bytes.
460 fI[0] = #3fff 9999 9999 9999 9999
461 = 1.19999999999999999993
462 fI[1] = #3fff 9999 9999 9999 999a
463 = 1.20000000000000000004
464 fI[0] == strtox
465
466
467 Input: -1.2
468
469 strtox consumes 4 bytes and returns 25
470 with bits = #bfff 9999 9999 9999 9999
471 printf("%.21Lg") gives -1.19999999999999999993
472 g_xfmt(0) gives 22 bytes: "-1.1999999999999999999"
473
474 strtoIx returns 41, consuming 4 bytes.
475 fI[0] = #bfff 9999 9999 9999 999a
476 = -1.20000000000000000004
477 fI[1] = #bfff 9999 9999 9999 9999
478 = -1.19999999999999999993
479 fI[1] == strtox
480
481
482 Input: 1.3
483
484 strtox consumes 3 bytes and returns 17
485 with bits = #3fff a666 6666 6666 6666
486 printf("%.21Lg") gives 1.29999999999999999996
487 g_xfmt(0) gives 3 bytes: "1.3"
488
489 strtoIx returns 17, consuming 3 bytes.
490 fI[0] = #3fff a666 6666 6666 6666
491 = 1.29999999999999999996
492 fI[1] = #3fff a666 6666 6666 6667
493 = 1.30000000000000000007
494 fI[0] == strtox
495
496
497 Input: -1.3
498
499 strtox consumes 4 bytes and returns 25
500 with bits = #bfff a666 6666 6666 6666
501 printf("%.21Lg") gives -1.29999999999999999996
502 g_xfmt(0) gives 4 bytes: "-1.3"
503
504 strtoIx returns 25, consuming 4 bytes.
505 fI[0] = #bfff a666 6666 6666 6667
506 = -1.30000000000000000007
507 fI[1] = #bfff a666 6666 6666 6666
508 = -1.29999999999999999996
509 fI[1] == strtox
510
511
512 Input: 1.4
513
514 strtox consumes 3 bytes and returns 17
515 with bits = #3fff b333 3333 3333 3333
516 printf("%.21Lg") gives 1.39999999999999999998
517 g_xfmt(0) gives 3 bytes: "1.4"
518
519 strtoIx returns 17, consuming 3 bytes.
520 fI[0] = #3fff b333 3333 3333 3333
521 = 1.39999999999999999998
522 fI[1] = #3fff b333 3333 3333 3334
523 = 1.40000000000000000009
524 fI[0] == strtox
525
526
527 Input: -1.4
528
529 strtox consumes 4 bytes and returns 25
530 with bits = #bfff b333 3333 3333 3333
531 printf("%.21Lg") gives -1.39999999999999999998
532 g_xfmt(0) gives 4 bytes: "-1.4"
533
534 strtoIx returns 25, consuming 4 bytes.
535 fI[0] = #bfff b333 3333 3333 3334
536 = -1.40000000000000000009
537 fI[1] = #bfff b333 3333 3333 3333
538 = -1.39999999999999999998
539 fI[1] == strtox
540
541
542 Input: 1.5
543
544 strtox consumes 3 bytes and returns 1
545 with bits = #3fff c000 0 0 0
546 printf("%.21Lg") gives 1.5
547 g_xfmt(0) gives 3 bytes: "1.5"
548
549 strtoIx returns 1, consuming 3 bytes.
550 fI[0] == fI[1] == strtox
551
552
553 Input: -1.5
554
555 strtox consumes 4 bytes and returns 9
556 with bits = #bfff c000 0 0 0
557 printf("%.21Lg") gives -1.5
558 g_xfmt(0) gives 4 bytes: "-1.5"
559
560 strtoIx returns 9, consuming 4 bytes.
561 fI[0] == fI[1] == strtox
562
563
564 Input: 1.6
565
566 strtox consumes 3 bytes and returns 17
567 with bits = #3fff cccc cccc cccc cccc
568 printf("%.21Lg") gives 1.59999999999999999991
569 g_xfmt(0) gives 21 bytes: "1.5999999999999999999"
570
571 strtoIx returns 33, consuming 3 bytes.
572 fI[0] = #3fff cccc cccc cccc cccc
573 = 1.59999999999999999991
574 fI[1] = #3fff cccc cccc cccc cccd
575 = 1.60000000000000000002
576 fI[0] == strtox
577
578
579 Input: -1.6
580
581 strtox consumes 4 bytes and returns 25
582 with bits = #bfff cccc cccc cccc cccc
583 printf("%.21Lg") gives -1.59999999999999999991
584 g_xfmt(0) gives 22 bytes: "-1.5999999999999999999"
585
586 strtoIx returns 41, consuming 4 bytes.
587 fI[0] = #bfff cccc cccc cccc cccd
588 = -1.60000000000000000002
589 fI[1] = #bfff cccc cccc cccc cccc
590 = -1.59999999999999999991
591 fI[1] == strtox
592
593
594 Input: 1.7
595
596 strtox consumes 3 bytes and returns 17
597 with bits = #3fff d999 9999 9999 9999
598 printf("%.21Lg") gives 1.69999999999999999993
599 g_xfmt(0) gives 21 bytes: "1.6999999999999999999"
600
601 strtoIx returns 33, consuming 3 bytes.
602 fI[0] = #3fff d999 9999 9999 9999
603 = 1.69999999999999999993
604 fI[1] = #3fff d999 9999 9999 999a
605 = 1.70000000000000000004
606 fI[0] == strtox
607
608
609 Input: -1.7
610
611 strtox consumes 4 bytes and returns 25
612 with bits = #bfff d999 9999 9999 9999
613 printf("%.21Lg") gives -1.69999999999999999993
614 g_xfmt(0) gives 22 bytes: "-1.6999999999999999999"
615
616 strtoIx returns 41, consuming 4 bytes.
617 fI[0] = #bfff d999 9999 9999 999a
618 = -1.70000000000000000004
619 fI[1] = #bfff d999 9999 9999 9999
620 = -1.69999999999999999993
621 fI[1] == strtox
622
623
624 Input: 1.8
625
626 strtox consumes 3 bytes and returns 17
627 with bits = #3fff e666 6666 6666 6666
628 printf("%.21Lg") gives 1.79999999999999999996
629 g_xfmt(0) gives 3 bytes: "1.8"
630
631 strtoIx returns 17, consuming 3 bytes.
632 fI[0] = #3fff e666 6666 6666 6666
633 = 1.79999999999999999996
634 fI[1] = #3fff e666 6666 6666 6667
635 = 1.80000000000000000007
636 fI[0] == strtox
637
638
639 Input: -1.8
640
641 strtox consumes 4 bytes and returns 25
642 with bits = #bfff e666 6666 6666 6666
643 printf("%.21Lg") gives -1.79999999999999999996
644 g_xfmt(0) gives 4 bytes: "-1.8"
645
646 strtoIx returns 25, consuming 4 bytes.
647 fI[0] = #bfff e666 6666 6666 6667
648 = -1.80000000000000000007
649 fI[1] = #bfff e666 6666 6666 6666
650 = -1.79999999999999999996
651 fI[1] == strtox
652
653
654 Input: 1.9
655
656 strtox consumes 3 bytes and returns 17
657 with bits = #3fff f333 3333 3333 3333
658 printf("%.21Lg") gives 1.89999999999999999998
659 g_xfmt(0) gives 3 bytes: "1.9"
660
661 strtoIx returns 17, consuming 3 bytes.
662 fI[0] = #3fff f333 3333 3333 3333
663 = 1.89999999999999999998
664 fI[1] = #3fff f333 3333 3333 3334
665 = 1.90000000000000000009
666 fI[0] == strtox
667
668
669 Input: -1.9
670
671 strtox consumes 4 bytes and returns 25
672 with bits = #bfff f333 3333 3333 3333
673 printf("%.21Lg") gives -1.89999999999999999998
674 g_xfmt(0) gives 4 bytes: "-1.9"
675
676 strtoIx returns 25, consuming 4 bytes.
677 fI[0] = #bfff f333 3333 3333 3334
678 = -1.90000000000000000009
679 fI[1] = #bfff f333 3333 3333 3333
680 = -1.89999999999999999998
681 fI[1] == strtox
682
683 Rounding mode for strtor... changed from 0 (toward zero) to 1 (nearest)
684
685 Input: 1.1
686
687 strtox consumes 3 bytes and returns 33
688 with bits = #3fff 8ccc cccc cccc cccd
689 printf("%.21Lg") gives 1.10000000000000000002
690 g_xfmt(0) gives 3 bytes: "1.1"
691
692 strtoIx returns 33, consuming 3 bytes.
693 fI[0] = #3fff 8ccc cccc cccc cccc
694 = 1.09999999999999999991
695 fI[1] = #3fff 8ccc cccc cccc cccd
696 = 1.10000000000000000002
697 fI[1] == strtox
698
699
700 Input: -1.1
701
702 strtox consumes 4 bytes and returns 41
703 with bits = #bfff 8ccc cccc cccc cccd
704 printf("%.21Lg") gives -1.10000000000000000002
705 g_xfmt(0) gives 4 bytes: "-1.1"
706
707 strtoIx returns 41, consuming 4 bytes.
708 fI[0] = #bfff 8ccc cccc cccc cccd
709 = -1.10000000000000000002
710 fI[1] = #bfff 8ccc cccc cccc cccc
711 = -1.09999999999999999991
712 fI[0] == strtox
713
714
715 Input: 1.2
716
717 strtox consumes 3 bytes and returns 33
718 with bits = #3fff 9999 9999 9999 999a
719 printf("%.21Lg") gives 1.20000000000000000004
720 g_xfmt(0) gives 3 bytes: "1.2"
721
722 strtoIx returns 33, consuming 3 bytes.
723 fI[0] = #3fff 9999 9999 9999 9999
724 = 1.19999999999999999993
725 fI[1] = #3fff 9999 9999 9999 999a
726 = 1.20000000000000000004
727 fI[1] == strtox
728
729
730 Input: -1.2
731
732 strtox consumes 4 bytes and returns 41
733 with bits = #bfff 9999 9999 9999 999a
734 printf("%.21Lg") gives -1.20000000000000000004
735 g_xfmt(0) gives 4 bytes: "-1.2"
736
737 strtoIx returns 41, consuming 4 bytes.
738 fI[0] = #bfff 9999 9999 9999 999a
739 = -1.20000000000000000004
740 fI[1] = #bfff 9999 9999 9999 9999
741 = -1.19999999999999999993
742 fI[0] == strtox
743
744
745 Input: 1.3
746
747 strtox consumes 3 bytes and returns 17
748 with bits = #3fff a666 6666 6666 6666
749 printf("%.21Lg") gives 1.29999999999999999996
750 g_xfmt(0) gives 3 bytes: "1.3"
751
752 strtoIx returns 17, consuming 3 bytes.
753 fI[0] = #3fff a666 6666 6666 6666
754 = 1.29999999999999999996
755 fI[1] = #3fff a666 6666 6666 6667
756 = 1.30000000000000000007
757 fI[0] == strtox
758
759
760 Input: -1.3
761
762 strtox consumes 4 bytes and returns 25
763 with bits = #bfff a666 6666 6666 6666
764 printf("%.21Lg") gives -1.29999999999999999996
765 g_xfmt(0) gives 4 bytes: "-1.3"
766
767 strtoIx returns 25, consuming 4 bytes.
768 fI[0] = #bfff a666 6666 6666 6667
769 = -1.30000000000000000007
770 fI[1] = #bfff a666 6666 6666 6666
771 = -1.29999999999999999996
772 fI[1] == strtox
773
774
775 Input: 1.4
776
777 strtox consumes 3 bytes and returns 17
778 with bits = #3fff b333 3333 3333 3333
779 printf("%.21Lg") gives 1.39999999999999999998
780 g_xfmt(0) gives 3 bytes: "1.4"
781
782 strtoIx returns 17, consuming 3 bytes.
783 fI[0] = #3fff b333 3333 3333 3333
784 = 1.39999999999999999998
785 fI[1] = #3fff b333 3333 3333 3334
786 = 1.40000000000000000009
787 fI[0] == strtox
788
789
790 Input: -1.4
791
792 strtox consumes 4 bytes and returns 25
793 with bits = #bfff b333 3333 3333 3333
794 printf("%.21Lg") gives -1.39999999999999999998
795 g_xfmt(0) gives 4 bytes: "-1.4"
796
797 strtoIx returns 25, consuming 4 bytes.
798 fI[0] = #bfff b333 3333 3333 3334
799 = -1.40000000000000000009
800 fI[1] = #bfff b333 3333 3333 3333
801 = -1.39999999999999999998
802 fI[1] == strtox
803
804
805 Input: 1.5
806
807 strtox consumes 3 bytes and returns 1
808 with bits = #3fff c000 0 0 0
809 printf("%.21Lg") gives 1.5
810 g_xfmt(0) gives 3 bytes: "1.5"
811
812 strtoIx returns 1, consuming 3 bytes.
813 fI[0] == fI[1] == strtox
814
815
816 Input: -1.5
817
818 strtox consumes 4 bytes and returns 9
819 with bits = #bfff c000 0 0 0
820 printf("%.21Lg") gives -1.5
821 g_xfmt(0) gives 4 bytes: "-1.5"
822
823 strtoIx returns 9, consuming 4 bytes.
824 fI[0] == fI[1] == strtox
825
826
827 Input: 1.6
828
829 strtox consumes 3 bytes and returns 33
830 with bits = #3fff cccc cccc cccc cccd
831 printf("%.21Lg") gives 1.60000000000000000002
832 g_xfmt(0) gives 3 bytes: "1.6"
833
834 strtoIx returns 33, consuming 3 bytes.
835 fI[0] = #3fff cccc cccc cccc cccc
836 = 1.59999999999999999991
837 fI[1] = #3fff cccc cccc cccc cccd
838 = 1.60000000000000000002
839 fI[1] == strtox
840
841
842 Input: -1.6
843
844 strtox consumes 4 bytes and returns 41
845 with bits = #bfff cccc cccc cccc cccd
846 printf("%.21Lg") gives -1.60000000000000000002
847 g_xfmt(0) gives 4 bytes: "-1.6"
848
849 strtoIx returns 41, consuming 4 bytes.
850 fI[0] = #bfff cccc cccc cccc cccd
851 = -1.60000000000000000002
852 fI[1] = #bfff cccc cccc cccc cccc
853 = -1.59999999999999999991
854 fI[0] == strtox
855
856
857 Input: 1.7
858
859 strtox consumes 3 bytes and returns 33
860 with bits = #3fff d999 9999 9999 999a
861 printf("%.21Lg") gives 1.70000000000000000004
862 g_xfmt(0) gives 3 bytes: "1.7"
863
864 strtoIx returns 33, consuming 3 bytes.
865 fI[0] = #3fff d999 9999 9999 9999
866 = 1.69999999999999999993
867 fI[1] = #3fff d999 9999 9999 999a
868 = 1.70000000000000000004
869 fI[1] == strtox
870
871
872 Input: -1.7
873
874 strtox consumes 4 bytes and returns 41
875 with bits = #bfff d999 9999 9999 999a
876 printf("%.21Lg") gives -1.70000000000000000004
877 g_xfmt(0) gives 4 bytes: "-1.7"
878
879 strtoIx returns 41, consuming 4 bytes.
880 fI[0] = #bfff d999 9999 9999 999a
881 = -1.70000000000000000004
882 fI[1] = #bfff d999 9999 9999 9999
883 = -1.69999999999999999993
884 fI[0] == strtox
885
886
887 Input: 1.8
888
889 strtox consumes 3 bytes and returns 17
890 with bits = #3fff e666 6666 6666 6666
891 printf("%.21Lg") gives 1.79999999999999999996
892 g_xfmt(0) gives 3 bytes: "1.8"
893
894 strtoIx returns 17, consuming 3 bytes.
895 fI[0] = #3fff e666 6666 6666 6666
896 = 1.79999999999999999996
897 fI[1] = #3fff e666 6666 6666 6667
898 = 1.80000000000000000007
899 fI[0] == strtox
900
901
902 Input: -1.8
903
904 strtox consumes 4 bytes and returns 25
905 with bits = #bfff e666 6666 6666 6666
906 printf("%.21Lg") gives -1.79999999999999999996
907 g_xfmt(0) gives 4 bytes: "-1.8"
908
909 strtoIx returns 25, consuming 4 bytes.
910 fI[0] = #bfff e666 6666 6666 6667
911 = -1.80000000000000000007
912 fI[1] = #bfff e666 6666 6666 6666
913 = -1.79999999999999999996
914 fI[1] == strtox
915
916
917 Input: 1.9
918
919 strtox consumes 3 bytes and returns 17
920 with bits = #3fff f333 3333 3333 3333
921 printf("%.21Lg") gives 1.89999999999999999998
922 g_xfmt(0) gives 3 bytes: "1.9"
923
924 strtoIx returns 17, consuming 3 bytes.
925 fI[0] = #3fff f333 3333 3333 3333
926 = 1.89999999999999999998
927 fI[1] = #3fff f333 3333 3333 3334
928 = 1.90000000000000000009
929 fI[0] == strtox
930
931
932 Input: -1.9
933
934 strtox consumes 4 bytes and returns 25
935 with bits = #bfff f333 3333 3333 3333
936 printf("%.21Lg") gives -1.89999999999999999998
937 g_xfmt(0) gives 4 bytes: "-1.9"
938
939 strtoIx returns 25, consuming 4 bytes.
940 fI[0] = #bfff f333 3333 3333 3334
941 = -1.90000000000000000009
942 fI[1] = #bfff f333 3333 3333 3333
943 = -1.89999999999999999998
944 fI[1] == strtox
945
946 Rounding mode for strtor... changed from 1 (nearest) to 2 (toward +Infinity)
947
948 Input: 1.1
949
950 strtox consumes 3 bytes and returns 33
951 with bits = #3fff 8ccc cccc cccc cccd
952 printf("%.21Lg") gives 1.10000000000000000002
953 g_xfmt(0) gives 3 bytes: "1.1"
954
955 strtoIx returns 33, consuming 3 bytes.
956 fI[0] = #3fff 8ccc cccc cccc cccc
957 = 1.09999999999999999991
958 fI[1] = #3fff 8ccc cccc cccc cccd
959 = 1.10000000000000000002
960 fI[1] == strtox
961
962
963 Input: -1.1
964
965 strtox consumes 4 bytes and returns 25
966 with bits = #bfff 8ccc cccc cccc cccc
967 printf("%.21Lg") gives -1.09999999999999999991
968 g_xfmt(0) gives 22 bytes: "-1.0999999999999999999"
969
970 strtoIx returns 41, consuming 4 bytes.
971 fI[0] = #bfff 8ccc cccc cccc cccd
972 = -1.10000000000000000002
973 fI[1] = #bfff 8ccc cccc cccc cccc
974 = -1.09999999999999999991
975 fI[1] == strtox
976
977
978 Input: 1.2
979
980 strtox consumes 3 bytes and returns 33
981 with bits = #3fff 9999 9999 9999 999a
982 printf("%.21Lg") gives 1.20000000000000000004
983 g_xfmt(0) gives 3 bytes: "1.2"
984
985 strtoIx returns 33, consuming 3 bytes.
986 fI[0] = #3fff 9999 9999 9999 9999
987 = 1.19999999999999999993
988 fI[1] = #3fff 9999 9999 9999 999a
989 = 1.20000000000000000004
990 fI[1] == strtox
991
992
993 Input: -1.2
994
995 strtox consumes 4 bytes and returns 25
996 with bits = #bfff 9999 9999 9999 9999
997 printf("%.21Lg") gives -1.19999999999999999993
998 g_xfmt(0) gives 22 bytes: "-1.1999999999999999999"
999
1000 strtoIx returns 41, consuming 4 bytes.
1001 fI[0] = #bfff 9999 9999 9999 999a
1002 = -1.20000000000000000004
1003 fI[1] = #bfff 9999 9999 9999 9999
1004 = -1.19999999999999999993
1005 fI[1] == strtox
1006
1007
1008 Input: 1.3
1009
1010 strtox consumes 3 bytes and returns 33
1011 with bits = #3fff a666 6666 6666 6667
1012 printf("%.21Lg") gives 1.30000000000000000007
1013 g_xfmt(0) gives 21 bytes: "1.3000000000000000001"
1014
1015 strtoIx returns 17, consuming 3 bytes.
1016 fI[0] = #3fff a666 6666 6666 6666
1017 = 1.29999999999999999996
1018 fI[1] = #3fff a666 6666 6666 6667
1019 = 1.30000000000000000007
1020 fI[1] == strtox
1021
1022
1023 Input: -1.3
1024
1025 strtox consumes 4 bytes and returns 25
1026 with bits = #bfff a666 6666 6666 6666
1027 printf("%.21Lg") gives -1.29999999999999999996
1028 g_xfmt(0) gives 4 bytes: "-1.3"
1029
1030 strtoIx returns 25, consuming 4 bytes.
1031 fI[0] = #bfff a666 6666 6666 6667
1032 = -1.30000000000000000007
1033 fI[1] = #bfff a666 6666 6666 6666
1034 = -1.29999999999999999996
1035 fI[1] == strtox
1036
1037
1038 Input: 1.4
1039
1040 strtox consumes 3 bytes and returns 33
1041 with bits = #3fff b333 3333 3333 3334
1042 printf("%.21Lg") gives 1.40000000000000000009
1043 g_xfmt(0) gives 21 bytes: "1.4000000000000000001"
1044
1045 strtoIx returns 17, consuming 3 bytes.
1046 fI[0] = #3fff b333 3333 3333 3333
1047 = 1.39999999999999999998
1048 fI[1] = #3fff b333 3333 3333 3334
1049 = 1.40000000000000000009
1050 fI[1] == strtox
1051
1052
1053 Input: -1.4
1054
1055 strtox consumes 4 bytes and returns 25
1056 with bits = #bfff b333 3333 3333 3333
1057 printf("%.21Lg") gives -1.39999999999999999998
1058 g_xfmt(0) gives 4 bytes: "-1.4"
1059
1060 strtoIx returns 25, consuming 4 bytes.
1061 fI[0] = #bfff b333 3333 3333 3334
1062 = -1.40000000000000000009
1063 fI[1] = #bfff b333 3333 3333 3333
1064 = -1.39999999999999999998
1065 fI[1] == strtox
1066
1067
1068 Input: 1.5
1069
1070 strtox consumes 3 bytes and returns 1
1071 with bits = #3fff c000 0 0 0
1072 printf("%.21Lg") gives 1.5
1073 g_xfmt(0) gives 3 bytes: "1.5"
1074
1075 strtoIx returns 1, consuming 3 bytes.
1076 fI[0] == fI[1] == strtox
1077
1078
1079 Input: -1.5
1080
1081 strtox consumes 4 bytes and returns 9
1082 with bits = #bfff c000 0 0 0
1083 printf("%.21Lg") gives -1.5
1084 g_xfmt(0) gives 4 bytes: "-1.5"
1085
1086 strtoIx returns 9, consuming 4 bytes.
1087 fI[0] == fI[1] == strtox
1088
1089
1090 Input: 1.6
1091
1092 strtox consumes 3 bytes and returns 33
1093 with bits = #3fff cccc cccc cccc cccd
1094 printf("%.21Lg") gives 1.60000000000000000002
1095 g_xfmt(0) gives 3 bytes: "1.6"
1096
1097 strtoIx returns 33, consuming 3 bytes.
1098 fI[0] = #3fff cccc cccc cccc cccc
1099 = 1.59999999999999999991
1100 fI[1] = #3fff cccc cccc cccc cccd
1101 = 1.60000000000000000002
1102 fI[1] == strtox
1103
1104
1105 Input: -1.6
1106
1107 strtox consumes 4 bytes and returns 25
1108 with bits = #bfff cccc cccc cccc cccc
1109 printf("%.21Lg") gives -1.59999999999999999991
1110 g_xfmt(0) gives 22 bytes: "-1.5999999999999999999"
1111
1112 strtoIx returns 41, consuming 4 bytes.
1113 fI[0] = #bfff cccc cccc cccc cccd
1114 = -1.60000000000000000002
1115 fI[1] = #bfff cccc cccc cccc cccc
1116 = -1.59999999999999999991
1117 fI[1] == strtox
1118
1119
1120 Input: 1.7
1121
1122 strtox consumes 3 bytes and returns 33
1123 with bits = #3fff d999 9999 9999 999a
1124 printf("%.21Lg") gives 1.70000000000000000004
1125 g_xfmt(0) gives 3 bytes: "1.7"
1126
1127 strtoIx returns 33, consuming 3 bytes.
1128 fI[0] = #3fff d999 9999 9999 9999
1129 = 1.69999999999999999993
1130 fI[1] = #3fff d999 9999 9999 999a
1131 = 1.70000000000000000004
1132 fI[1] == strtox
1133
1134
1135 Input: -1.7
1136
1137 strtox consumes 4 bytes and returns 25
1138 with bits = #bfff d999 9999 9999 9999
1139 printf("%.21Lg") gives -1.69999999999999999993
1140 g_xfmt(0) gives 22 bytes: "-1.6999999999999999999"
1141
1142 strtoIx returns 41, consuming 4 bytes.
1143 fI[0] = #bfff d999 9999 9999 999a
1144 = -1.70000000000000000004
1145 fI[1] = #bfff d999 9999 9999 9999
1146 = -1.69999999999999999993
1147 fI[1] == strtox
1148
1149
1150 Input: 1.8
1151
1152 strtox consumes 3 bytes and returns 33
1153 with bits = #3fff e666 6666 6666 6667
1154 printf("%.21Lg") gives 1.80000000000000000007
1155 g_xfmt(0) gives 21 bytes: "1.8000000000000000001"
1156
1157 strtoIx returns 17, consuming 3 bytes.
1158 fI[0] = #3fff e666 6666 6666 6666
1159 = 1.79999999999999999996
1160 fI[1] = #3fff e666 6666 6666 6667
1161 = 1.80000000000000000007
1162 fI[1] == strtox
1163
1164
1165 Input: -1.8
1166
1167 strtox consumes 4 bytes and returns 25
1168 with bits = #bfff e666 6666 6666 6666
1169 printf("%.21Lg") gives -1.79999999999999999996
1170 g_xfmt(0) gives 4 bytes: "-1.8"
1171
1172 strtoIx returns 25, consuming 4 bytes.
1173 fI[0] = #bfff e666 6666 6666 6667
1174 = -1.80000000000000000007
1175 fI[1] = #bfff e666 6666 6666 6666
1176 = -1.79999999999999999996
1177 fI[1] == strtox
1178
1179
1180 Input: 1.9
1181
1182 strtox consumes 3 bytes and returns 33
1183 with bits = #3fff f333 3333 3333 3334
1184 printf("%.21Lg") gives 1.90000000000000000009
1185 g_xfmt(0) gives 21 bytes: "1.9000000000000000001"
1186
1187 strtoIx returns 17, consuming 3 bytes.
1188 fI[0] = #3fff f333 3333 3333 3333
1189 = 1.89999999999999999998
1190 fI[1] = #3fff f333 3333 3333 3334
1191 = 1.90000000000000000009
1192 fI[1] == strtox
1193
1194
1195 Input: -1.9
1196
1197 strtox consumes 4 bytes and returns 25
1198 with bits = #bfff f333 3333 3333 3333
1199 printf("%.21Lg") gives -1.89999999999999999998
1200 g_xfmt(0) gives 4 bytes: "-1.9"
1201
1202 strtoIx returns 25, consuming 4 bytes.
1203 fI[0] = #bfff f333 3333 3333 3334
1204 = -1.90000000000000000009
1205 fI[1] = #bfff f333 3333 3333 3333
1206 = -1.89999999999999999998
1207 fI[1] == strtox
1208
1209 Rounding mode for strtor... changed from 2 (toward +Infinity) to 3 (toward -Infinity)
1210
1211 Input: 1.1
1212
1213 strtox consumes 3 bytes and returns 17
1214 with bits = #3fff 8ccc cccc cccc cccc
1215 printf("%.21Lg") gives 1.09999999999999999991
1216 g_xfmt(0) gives 21 bytes: "1.0999999999999999999"
1217
1218 strtoIx returns 33, consuming 3 bytes.
1219 fI[0] = #3fff 8ccc cccc cccc cccc
1220 = 1.09999999999999999991
1221 fI[1] = #3fff 8ccc cccc cccc cccd
1222 = 1.10000000000000000002
1223 fI[0] == strtox
1224
1225
1226 Input: -1.1
1227
1228 strtox consumes 4 bytes and returns 41
1229 with bits = #bfff 8ccc cccc cccc cccd
1230 printf("%.21Lg") gives -1.10000000000000000002
1231 g_xfmt(0) gives 4 bytes: "-1.1"
1232
1233 strtoIx returns 41, consuming 4 bytes.
1234 fI[0] = #bfff 8ccc cccc cccc cccd
1235 = -1.10000000000000000002
1236 fI[1] = #bfff 8ccc cccc cccc cccc
1237 = -1.09999999999999999991
1238 fI[0] == strtox
1239
1240
1241 Input: 1.2
1242
1243 strtox consumes 3 bytes and returns 17
1244 with bits = #3fff 9999 9999 9999 9999
1245 printf("%.21Lg") gives 1.19999999999999999993
1246 g_xfmt(0) gives 21 bytes: "1.1999999999999999999"
1247
1248 strtoIx returns 33, consuming 3 bytes.
1249 fI[0] = #3fff 9999 9999 9999 9999
1250 = 1.19999999999999999993
1251 fI[1] = #3fff 9999 9999 9999 999a
1252 = 1.20000000000000000004
1253 fI[0] == strtox
1254
1255
1256 Input: -1.2
1257
1258 strtox consumes 4 bytes and returns 41
1259 with bits = #bfff 9999 9999 9999 999a
1260 printf("%.21Lg") gives -1.20000000000000000004
1261 g_xfmt(0) gives 4 bytes: "-1.2"
1262
1263 strtoIx returns 41, consuming 4 bytes.
1264 fI[0] = #bfff 9999 9999 9999 999a
1265 = -1.20000000000000000004
1266 fI[1] = #bfff 9999 9999 9999 9999
1267 = -1.19999999999999999993
1268 fI[0] == strtox
1269
1270
1271 Input: 1.3
1272
1273 strtox consumes 3 bytes and returns 17
1274 with bits = #3fff a666 6666 6666 6666
1275 printf("%.21Lg") gives 1.29999999999999999996
1276 g_xfmt(0) gives 3 bytes: "1.3"
1277
1278 strtoIx returns 17, consuming 3 bytes.
1279 fI[0] = #3fff a666 6666 6666 6666
1280 = 1.29999999999999999996
1281 fI[1] = #3fff a666 6666 6666 6667
1282 = 1.30000000000000000007
1283 fI[0] == strtox
1284
1285
1286 Input: -1.3
1287
1288 strtox consumes 4 bytes and returns 41
1289 with bits = #bfff a666 6666 6666 6667
1290 printf("%.21Lg") gives -1.30000000000000000007
1291 g_xfmt(0) gives 22 bytes: "-1.3000000000000000001"
1292
1293 strtoIx returns 25, consuming 4 bytes.
1294 fI[0] = #bfff a666 6666 6666 6667
1295 = -1.30000000000000000007
1296 fI[1] = #bfff a666 6666 6666 6666
1297 = -1.29999999999999999996
1298 fI[0] == strtox
1299
1300
1301 Input: 1.4
1302
1303 strtox consumes 3 bytes and returns 17
1304 with bits = #3fff b333 3333 3333 3333
1305 printf("%.21Lg") gives 1.39999999999999999998
1306 g_xfmt(0) gives 3 bytes: "1.4"
1307
1308 strtoIx returns 17, consuming 3 bytes.
1309 fI[0] = #3fff b333 3333 3333 3333
1310 = 1.39999999999999999998
1311 fI[1] = #3fff b333 3333 3333 3334
1312 = 1.40000000000000000009
1313 fI[0] == strtox
1314
1315
1316 Input: -1.4
1317
1318 strtox consumes 4 bytes and returns 41
1319 with bits = #bfff b333 3333 3333 3334
1320 printf("%.21Lg") gives -1.40000000000000000009
1321 g_xfmt(0) gives 22 bytes: "-1.4000000000000000001"
1322
1323 strtoIx returns 25, consuming 4 bytes.
1324 fI[0] = #bfff b333 3333 3333 3334
1325 = -1.40000000000000000009
1326 fI[1] = #bfff b333 3333 3333 3333
1327 = -1.39999999999999999998
1328 fI[0] == strtox
1329
1330
1331 Input: 1.5
1332
1333 strtox consumes 3 bytes and returns 1
1334 with bits = #3fff c000 0 0 0
1335 printf("%.21Lg") gives 1.5
1336 g_xfmt(0) gives 3 bytes: "1.5"
1337
1338 strtoIx returns 1, consuming 3 bytes.
1339 fI[0] == fI[1] == strtox
1340
1341
1342 Input: -1.5
1343
1344 strtox consumes 4 bytes and returns 9
1345 with bits = #bfff c000 0 0 0
1346 printf("%.21Lg") gives -1.5
1347 g_xfmt(0) gives 4 bytes: "-1.5"
1348
1349 strtoIx returns 9, consuming 4 bytes.
1350 fI[0] == fI[1] == strtox
1351
1352
1353 Input: 1.6
1354
1355 strtox consumes 3 bytes and returns 17
1356 with bits = #3fff cccc cccc cccc cccc
1357 printf("%.21Lg") gives 1.59999999999999999991
1358 g_xfmt(0) gives 21 bytes: "1.5999999999999999999"
1359
1360 strtoIx returns 33, consuming 3 bytes.
1361 fI[0] = #3fff cccc cccc cccc cccc
1362 = 1.59999999999999999991
1363 fI[1] = #3fff cccc cccc cccc cccd
1364 = 1.60000000000000000002
1365 fI[0] == strtox
1366
1367
1368 Input: -1.6
1369
1370 strtox consumes 4 bytes and returns 41
1371 with bits = #bfff cccc cccc cccc cccd
1372 printf("%.21Lg") gives -1.60000000000000000002
1373 g_xfmt(0) gives 4 bytes: "-1.6"
1374
1375 strtoIx returns 41, consuming 4 bytes.
1376 fI[0] = #bfff cccc cccc cccc cccd
1377 = -1.60000000000000000002
1378 fI[1] = #bfff cccc cccc cccc cccc
1379 = -1.59999999999999999991
1380 fI[0] == strtox
1381
1382
1383 Input: 1.7
1384
1385 strtox consumes 3 bytes and returns 17
1386 with bits = #3fff d999 9999 9999 9999
1387 printf("%.21Lg") gives 1.69999999999999999993
1388 g_xfmt(0) gives 21 bytes: "1.6999999999999999999"
1389
1390 strtoIx returns 33, consuming 3 bytes.
1391 fI[0] = #3fff d999 9999 9999 9999
1392 = 1.69999999999999999993
1393 fI[1] = #3fff d999 9999 9999 999a
1394 = 1.70000000000000000004
1395 fI[0] == strtox
1396
1397
1398 Input: -1.7
1399
1400 strtox consumes 4 bytes and returns 41
1401 with bits = #bfff d999 9999 9999 999a
1402 printf("%.21Lg") gives -1.70000000000000000004
1403 g_xfmt(0) gives 4 bytes: "-1.7"
1404
1405 strtoIx returns 41, consuming 4 bytes.
1406 fI[0] = #bfff d999 9999 9999 999a
1407 = -1.70000000000000000004
1408 fI[1] = #bfff d999 9999 9999 9999
1409 = -1.69999999999999999993
1410 fI[0] == strtox
1411
1412
1413 Input: 1.8
1414
1415 strtox consumes 3 bytes and returns 17
1416 with bits = #3fff e666 6666 6666 6666
1417 printf("%.21Lg") gives 1.79999999999999999996
1418 g_xfmt(0) gives 3 bytes: "1.8"
1419
1420 strtoIx returns 17, consuming 3 bytes.
1421 fI[0] = #3fff e666 6666 6666 6666
1422 = 1.79999999999999999996
1423 fI[1] = #3fff e666 6666 6666 6667
1424 = 1.80000000000000000007
1425 fI[0] == strtox
1426
1427
1428 Input: -1.8
1429
1430 strtox consumes 4 bytes and returns 41
1431 with bits = #bfff e666 6666 6666 6667
1432 printf("%.21Lg") gives -1.80000000000000000007
1433 g_xfmt(0) gives 22 bytes: "-1.8000000000000000001"
1434
1435 strtoIx returns 25, consuming 4 bytes.
1436 fI[0] = #bfff e666 6666 6666 6667
1437 = -1.80000000000000000007
1438 fI[1] = #bfff e666 6666 6666 6666
1439 = -1.79999999999999999996
1440 fI[0] == strtox
1441
1442
1443 Input: 1.9
1444
1445 strtox consumes 3 bytes and returns 17
1446 with bits = #3fff f333 3333 3333 3333
1447 printf("%.21Lg") gives 1.89999999999999999998
1448 g_xfmt(0) gives 3 bytes: "1.9"
1449
1450 strtoIx returns 17, consuming 3 bytes.
1451 fI[0] = #3fff f333 3333 3333 3333
1452 = 1.89999999999999999998
1453 fI[1] = #3fff f333 3333 3333 3334
1454 = 1.90000000000000000009
1455 fI[0] == strtox
1456
1457
1458 Input: -1.9
1459
1460 strtox consumes 4 bytes and returns 41
1461 with bits = #bfff f333 3333 3333 3334
1462 printf("%.21Lg") gives -1.90000000000000000009
1463 g_xfmt(0) gives 22 bytes: "-1.9000000000000000001"
1464
1465 strtoIx returns 25, consuming 4 bytes.
1466 fI[0] = #bfff f333 3333 3333 3334
1467 = -1.90000000000000000009
1468 fI[1] = #bfff f333 3333 3333 3333
1469 = -1.89999999999999999998
1470 fI[0] == strtox
1471