Debian Codegraph @

runtime/gdtoa/test/x.ou0

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