xref: /minix3/lib/libc/gdtoa/test/Q.ou0 (revision f14fb602092e015ff630df58e17c2a9cd57d29b3)
1
2Input: 1.23
3
4strtoQ consumes 4 bytes and returns 17
5with bits = #3fff3ae1 47ae147a e147ae14 7ae147ae
6g_Qfmt(0) gives 4 bytes: "1.23"
7
8strtoIQ returns 17, consuming 4 bytes.
9fI[0] = #3fff3ae1 47ae147a e147ae14 7ae147ae
10fI[1] = #3fff3ae1 47ae147a e147ae14 7ae147af
11fI[0] == strtod
12
13
14Input: 1.23e+20
15
16strtoQ consumes 8 bytes and returns 1
17with bits = #4041aabd f2145b43 0 0
18g_Qfmt(0) gives 8 bytes: "1.23e+20"
19
20strtoIQ returns 1, consuming 8 bytes.
21fI[0] == fI[1] = #4041aabd f2145b43 0 0
22
23
24Input: 1.23e-20
25
26strtoQ consumes 8 bytes and returns 17
27with bits = #3fbcd0ae 4cf76753 9e4cbca ad934841
28g_Qfmt(0) gives 8 bytes: "1.23e-20"
29
30strtoIQ returns 17, consuming 8 bytes.
31fI[0] = #3fbcd0ae 4cf76753 9e4cbca ad934841
32fI[1] = #3fbcd0ae 4cf76753 9e4cbca ad934842
33fI[0] == strtod
34
35
36Input: 1.23456789
37
38strtoQ consumes 10 bytes and returns 17
39with bits = #3fff3c0c a4283de1 b7eb6945 1304948f
40g_Qfmt(0) gives 10 bytes: "1.23456789"
41
42strtoIQ returns 17, consuming 10 bytes.
43fI[0] = #3fff3c0c a4283de1 b7eb6945 1304948f
44fI[1] = #3fff3c0c a4283de1 b7eb6945 13049490
45fI[0] == strtod
46
47
48Input: 1.23456589e+20
49
50strtoQ consumes 14 bytes and returns 1
51with bits = #4041ac53 7a660b99 74000000 0
52g_Qfmt(0) gives 14 bytes: "1.23456589e+20"
53
54strtoIQ returns 1, consuming 14 bytes.
55fI[0] == fI[1] = #4041ac53 7a660b99 74000000 0
56
57
58Input: 1.23e+30
59
60strtoQ consumes 8 bytes and returns 1
61with bits = #4062f0cb 4e8fb79 4945600 0
62g_Qfmt(0) gives 8 bytes: "1.23e+30"
63
64strtoIQ returns 1, consuming 8 bytes.
65fI[0] == fI[1] = #4062f0cb 4e8fb79 4945600 0
66
67
68Input: 1.23e-30
69
70strtoQ consumes 8 bytes and returns 17
71with bits = #3f9b8f28 66f5010a a9d63f9e d7e8ba14
72g_Qfmt(0) gives 8 bytes: "1.23e-30"
73
74strtoIQ returns 17, consuming 8 bytes.
75fI[0] = #3f9b8f28 66f5010a a9d63f9e d7e8ba14
76fI[1] = #3f9b8f28 66f5010a a9d63f9e d7e8ba15
77fI[0] == strtod
78
79
80Input: 1.23456789e-20
81
82strtoQ consumes 14 bytes and returns 33
83with bits = #3fbcd268 1471e7ad a6a4a029 d86c1fa2
84g_Qfmt(0) gives 14 bytes: "1.23456789e-20"
85
86strtoIQ returns 33, consuming 14 bytes.
87fI[0] = #3fbcd268 1471e7ad a6a4a029 d86c1fa1
88fI[1] = #3fbcd268 1471e7ad a6a4a029 d86c1fa2
89fI[1] == strtod
90
91
92Input: 1.23456789e-30
93
94strtoQ consumes 14 bytes and returns 17
95with bits = #3f9b90a3 e33bbd99 51f85855 5a6b19d4
96g_Qfmt(0) gives 14 bytes: "1.23456789e-30"
97
98strtoIQ returns 17, consuming 14 bytes.
99fI[0] = #3f9b90a3 e33bbd99 51f85855 5a6b19d4
100fI[1] = #3f9b90a3 e33bbd99 51f85855 5a6b19d5
101fI[0] == strtod
102
103
104Input: 1.234567890123456789
105
106strtoQ consumes 20 bytes and returns 17
107with bits = #3fff3c0c a428c59f b71a4194 68dd175b
108g_Qfmt(0) gives 20 bytes: "1.234567890123456789"
109
110strtoIQ returns 17, consuming 20 bytes.
111fI[0] = #3fff3c0c a428c59f b71a4194 68dd175b
112fI[1] = #3fff3c0c a428c59f b71a4194 68dd175c
113fI[0] == strtod
114
115
116Input: 1.23456789012345678901234567890123456789
117
118strtoQ consumes 40 bytes and returns 17
119with bits = #3fff3c0c a428c59f b71a7be1 6b6b6d5b
120g_Qfmt(0) gives 36 bytes: "1.2345678901234567890123456789012346"
121
122strtoIQ returns 17, consuming 40 bytes.
123fI[0] = #3fff3c0c a428c59f b71a7be1 6b6b6d5b
124fI[1] = #3fff3c0c a428c59f b71a7be1 6b6b6d5c
125fI[0] == strtod
126
127
128Input: 1.23e306
129
130strtoQ consumes 8 bytes and returns 33
131with bits = #43f7c067 6cd1c61f 4daac5f1 e9fa3b55
132g_Qfmt(0) gives 9 bytes: "1.23e+306"
133
134strtoIQ returns 33, consuming 8 bytes.
135fI[0] = #43f7c067 6cd1c61f 4daac5f1 e9fa3b54
136fI[1] = #43f7c067 6cd1c61f 4daac5f1 e9fa3b55
137fI[1] == strtod
138
139
140Input: 1.23e-306
141
142strtoQ consumes 9 bytes and returns 17
143with bits = #3c06ba3b 85da396e 7e496ab7 d233c3dd
144g_Qfmt(0) gives 9 bytes: "1.23e-306"
145
146strtoIQ returns 17, consuming 9 bytes.
147fI[0] = #3c06ba3b 85da396e 7e496ab7 d233c3dd
148fI[1] = #3c06ba3b 85da396e 7e496ab7 d233c3de
149fI[0] == strtod
150
151
152Input: 1.23e-320
153
154strtoQ consumes 9 bytes and returns 33
155with bits = #3bd83731 86e30898 7e33b2e8 355f847b
156g_Qfmt(0) gives 9 bytes: "1.23e-320"
157
158strtoIQ returns 33, consuming 9 bytes.
159fI[0] = #3bd83731 86e30898 7e33b2e8 355f847a
160fI[1] = #3bd83731 86e30898 7e33b2e8 355f847b
161fI[1] == strtod
162
163
164Input: 1.23e-20
165
166strtoQ consumes 8 bytes and returns 17
167with bits = #3fbcd0ae 4cf76753 9e4cbca ad934841
168g_Qfmt(0) gives 8 bytes: "1.23e-20"
169
170strtoIQ returns 17, consuming 8 bytes.
171fI[0] = #3fbcd0ae 4cf76753 9e4cbca ad934841
172fI[1] = #3fbcd0ae 4cf76753 9e4cbca ad934842
173fI[0] == strtod
174
175
176Input: 1.23456789e307
177
178strtoQ consumes 14 bytes and returns 17
179with bits = #43fb194b 14bdaecd bcea468c 902464cf
180g_Qfmt(0) gives 15 bytes: "1.23456789e+307"
181
182strtoIQ returns 17, consuming 14 bytes.
183fI[0] = #43fb194b 14bdaecd bcea468c 902464cf
184fI[1] = #43fb194b 14bdaecd bcea468c 902464d0
185fI[0] == strtod
186
187
188Input: 1.23456589e-307
189
190strtoQ consumes 15 bytes and returns 17
191with bits = #3c036319 6bb9845f a6d234e3 39163574
192g_Qfmt(0) gives 15 bytes: "1.23456589e-307"
193
194strtoIQ returns 17, consuming 15 bytes.
195fI[0] = #3c036319 6bb9845f a6d234e3 39163574
196fI[1] = #3c036319 6bb9845f a6d234e3 39163575
197fI[0] == strtod
198
199
200Input: 1.234567890123456789
201
202strtoQ consumes 20 bytes and returns 17
203with bits = #3fff3c0c a428c59f b71a4194 68dd175b
204g_Qfmt(0) gives 20 bytes: "1.234567890123456789"
205
206strtoIQ returns 17, consuming 20 bytes.
207fI[0] = #3fff3c0c a428c59f b71a4194 68dd175b
208fI[1] = #3fff3c0c a428c59f b71a4194 68dd175c
209fI[0] == strtod
210
211
212Input: 1.234567890123456789e301
213
214strtoQ consumes 24 bytes and returns 33
215with bits = #43e726f5 175f5641 3017ea80 763990ef
216g_Qfmt(0) gives 25 bytes: "1.234567890123456789e+301"
217
218strtoIQ returns 33, consuming 24 bytes.
219fI[0] = #43e726f5 175f5641 3017ea80 763990ee
220fI[1] = #43e726f5 175f5641 3017ea80 763990ef
221fI[1] == strtod
222
223
224Input: 1.234567890123456789e-301
225
226strtoQ consumes 25 bytes and returns 17
227with bits = #3c1752a6 4e34ba0d 35b19b04 3222fce5
228g_Qfmt(0) gives 25 bytes: "1.234567890123456789e-301"
229
230strtoIQ returns 17, consuming 25 bytes.
231fI[0] = #3c1752a6 4e34ba0d 35b19b04 3222fce5
232fI[1] = #3c1752a6 4e34ba0d 35b19b04 3222fce6
233fI[0] == strtod
234
235
236Input: 1.234567890123456789e-321
237
238strtoQ consumes 25 bytes and returns 17
239with bits = #3bd4f3c2 3699d4db 99d1ea94 2fecd7de
240g_Qfmt(0) gives 25 bytes: "1.234567890123456789e-321"
241
242strtoIQ returns 17, consuming 25 bytes.
243fI[0] = #3bd4f3c2 3699d4db 99d1ea94 2fecd7de
244fI[1] = #3bd4f3c2 3699d4db 99d1ea94 2fecd7df
245fI[0] == strtod
246
247
248Input: 1e23
249
250strtoQ consumes 4 bytes and returns 1
251with bits = #404b52d0 2c7e14af 68000000 0
252g_Qfmt(0) gives 5 bytes: "1e+23"
253
254strtoIQ returns 1, consuming 4 bytes.
255fI[0] == fI[1] = #404b52d0 2c7e14af 68000000 0
256
257
258Input: 1e310
259
260strtoQ consumes 5 bytes and returns 33
261with bits = #4404bd03 c8140697 9e9ff00e fefd4cbd
262g_Qfmt(0) gives 6 bytes: "1e+310"
263
264strtoIQ returns 33, consuming 5 bytes.
265fI[0] = #4404bd03 c8140697 9e9ff00e fefd4cbc
266fI[1] = #4404bd03 c8140697 9e9ff00e fefd4cbd
267fI[1] == strtod
268
269
270Input: 9.0259718793241475e-277
271
272strtoQ consumes 23 bytes and returns 17
273with bits = #3c69ffff ffffffff f9ed5779 ac118fe1
274g_Qfmt(0) gives 23 bytes: "9.0259718793241475e-277"
275
276strtoIQ returns 17, consuming 23 bytes.
277fI[0] = #3c69ffff ffffffff f9ed5779 ac118fe1
278fI[1] = #3c69ffff ffffffff f9ed5779 ac118fe2
279fI[0] == strtod
280
281
282Input: 9.025971879324147880346310405869e-277
283
284strtoQ consumes 37 bytes and returns 33
285with bits = #3c6a0000 0 0 9a
286g_Qfmt(0) gives 37 bytes: "9.025971879324147880346310405869e-277"
287
288strtoIQ returns 33, consuming 37 bytes.
289fI[0] = #3c6a0000 0 0 99
290fI[1] = #3c6a0000 0 0 9a
291fI[1] == strtod
292
293
294Input: 9.025971879324147880346310405868e-277
295
296strtoQ consumes 37 bytes and returns 17
297with bits = #3c69ffff ffffffff ffffffff fffffcb5
298g_Qfmt(0) gives 37 bytes: "9.025971879324147880346310405868e-277"
299
300strtoIQ returns 17, consuming 37 bytes.
301fI[0] = #3c69ffff ffffffff ffffffff fffffcb5
302fI[1] = #3c69ffff ffffffff ffffffff fffffcb6
303fI[0] == strtod
304
305
306Input: 2.2250738585072014e-308
307
308strtoQ consumes 23 bytes and returns 33
309with bits = #3c010000 0 8c304c cf867de0
310g_Qfmt(0) gives 23 bytes: "2.2250738585072014e-308"
311
312strtoIQ returns 33, consuming 23 bytes.
313fI[0] = #3c010000 0 8c304c cf867ddf
314fI[1] = #3c010000 0 8c304c cf867de0
315fI[1] == strtod
316
317
318Input: 2.2250738585072013e-308
319
320strtoQ consumes 23 bytes and returns 33
321with bits = #3c00ffff ffffffff fa9e4c4f 4c1e8a10
322g_Qfmt(0) gives 23 bytes: "2.2250738585072013e-308"
323
324strtoIQ returns 33, consuming 23 bytes.
325fI[0] = #3c00ffff ffffffff fa9e4c4f 4c1e8a0f
326fI[1] = #3c00ffff ffffffff fa9e4c4f 4c1e8a10
327fI[1] == strtod
328
329Rounding mode for strtor... changed from 1 (nearest) to 0 (toward zero)
330
331Input: 1.1
332
333strtoQ consumes 3 bytes and returns 17
334with bits = #3fff1999 99999999 99999999 99999999
335g_Qfmt(0) gives 36 bytes: "1.0999999999999999999999999999999999"
336
337strtoIQ returns 33, consuming 3 bytes.
338fI[0] = #3fff1999 99999999 99999999 99999999
339fI[1] = #3fff1999 99999999 99999999 9999999a
340fI[0] == strtod
341
342
343Input: -1.1
344
345strtoQ consumes 4 bytes and returns 25
346with bits = #bfff1999 99999999 99999999 99999999
347g_Qfmt(0) gives 37 bytes: "-1.0999999999999999999999999999999999"
348
349strtoIQ returns 41, consuming 4 bytes.
350fI[0] = #bfff1999 99999999 99999999 9999999a
351fI[1] = #bfff1999 99999999 99999999 99999999
352fI[1] == strtod
353
354
355Input: 1.2
356
357strtoQ consumes 3 bytes and returns 17
358with bits = #3fff3333 33333333 33333333 33333333
359g_Qfmt(0) gives 3 bytes: "1.2"
360
361strtoIQ returns 17, consuming 3 bytes.
362fI[0] = #3fff3333 33333333 33333333 33333333
363fI[1] = #3fff3333 33333333 33333333 33333334
364fI[0] == strtod
365
366
367Input: -1.2
368
369strtoQ consumes 4 bytes and returns 25
370with bits = #bfff3333 33333333 33333333 33333333
371g_Qfmt(0) gives 4 bytes: "-1.2"
372
373strtoIQ returns 25, consuming 4 bytes.
374fI[0] = #bfff3333 33333333 33333333 33333334
375fI[1] = #bfff3333 33333333 33333333 33333333
376fI[1] == strtod
377
378
379Input: 1.3
380
381strtoQ consumes 3 bytes and returns 17
382with bits = #3fff4ccc cccccccc cccccccc cccccccc
383g_Qfmt(0) gives 36 bytes: "1.2999999999999999999999999999999998"
384
385strtoIQ returns 33, consuming 3 bytes.
386fI[0] = #3fff4ccc cccccccc cccccccc cccccccc
387fI[1] = #3fff4ccc cccccccc cccccccc cccccccd
388fI[0] == strtod
389
390
391Input: -1.3
392
393strtoQ consumes 4 bytes and returns 25
394with bits = #bfff4ccc cccccccc cccccccc cccccccc
395g_Qfmt(0) gives 37 bytes: "-1.2999999999999999999999999999999998"
396
397strtoIQ returns 41, consuming 4 bytes.
398fI[0] = #bfff4ccc cccccccc cccccccc cccccccd
399fI[1] = #bfff4ccc cccccccc cccccccc cccccccc
400fI[1] == strtod
401
402
403Input: 1.4
404
405strtoQ consumes 3 bytes and returns 17
406with bits = #3fff6666 66666666 66666666 66666666
407g_Qfmt(0) gives 3 bytes: "1.4"
408
409strtoIQ returns 17, consuming 3 bytes.
410fI[0] = #3fff6666 66666666 66666666 66666666
411fI[1] = #3fff6666 66666666 66666666 66666667
412fI[0] == strtod
413
414
415Input: -1.4
416
417strtoQ consumes 4 bytes and returns 25
418with bits = #bfff6666 66666666 66666666 66666666
419g_Qfmt(0) gives 4 bytes: "-1.4"
420
421strtoIQ returns 25, consuming 4 bytes.
422fI[0] = #bfff6666 66666666 66666666 66666667
423fI[1] = #bfff6666 66666666 66666666 66666666
424fI[1] == strtod
425
426
427Input: 1.5
428
429strtoQ consumes 3 bytes and returns 1
430with bits = #3fff8000 0 0 0
431g_Qfmt(0) gives 3 bytes: "1.5"
432
433strtoIQ returns 1, consuming 3 bytes.
434fI[0] == fI[1] = #3fff8000 0 0 0
435
436
437Input: -1.5
438
439strtoQ consumes 4 bytes and returns 9
440with bits = #bfff8000 0 0 0
441g_Qfmt(0) gives 4 bytes: "-1.5"
442
443strtoIQ returns 9, consuming 4 bytes.
444fI[0] == fI[1] = #bfff8000 0 0 0
445
446
447Input: 1.6
448
449strtoQ consumes 3 bytes and returns 17
450with bits = #3fff9999 99999999 99999999 99999999
451g_Qfmt(0) gives 36 bytes: "1.5999999999999999999999999999999999"
452
453strtoIQ returns 33, consuming 3 bytes.
454fI[0] = #3fff9999 99999999 99999999 99999999
455fI[1] = #3fff9999 99999999 99999999 9999999a
456fI[0] == strtod
457
458
459Input: -1.6
460
461strtoQ consumes 4 bytes and returns 25
462with bits = #bfff9999 99999999 99999999 99999999
463g_Qfmt(0) gives 37 bytes: "-1.5999999999999999999999999999999999"
464
465strtoIQ returns 41, consuming 4 bytes.
466fI[0] = #bfff9999 99999999 99999999 9999999a
467fI[1] = #bfff9999 99999999 99999999 99999999
468fI[1] == strtod
469
470
471Input: 1.7
472
473strtoQ consumes 3 bytes and returns 17
474with bits = #3fffb333 33333333 33333333 33333333
475g_Qfmt(0) gives 3 bytes: "1.7"
476
477strtoIQ returns 17, consuming 3 bytes.
478fI[0] = #3fffb333 33333333 33333333 33333333
479fI[1] = #3fffb333 33333333 33333333 33333334
480fI[0] == strtod
481
482
483Input: -1.7
484
485strtoQ consumes 4 bytes and returns 25
486with bits = #bfffb333 33333333 33333333 33333333
487g_Qfmt(0) gives 4 bytes: "-1.7"
488
489strtoIQ returns 25, consuming 4 bytes.
490fI[0] = #bfffb333 33333333 33333333 33333334
491fI[1] = #bfffb333 33333333 33333333 33333333
492fI[1] == strtod
493
494
495Input: 1.8
496
497strtoQ consumes 3 bytes and returns 17
498with bits = #3fffcccc cccccccc cccccccc cccccccc
499g_Qfmt(0) gives 36 bytes: "1.7999999999999999999999999999999998"
500
501strtoIQ returns 33, consuming 3 bytes.
502fI[0] = #3fffcccc cccccccc cccccccc cccccccc
503fI[1] = #3fffcccc cccccccc cccccccc cccccccd
504fI[0] == strtod
505
506
507Input: -1.8
508
509strtoQ consumes 4 bytes and returns 25
510with bits = #bfffcccc cccccccc cccccccc cccccccc
511g_Qfmt(0) gives 37 bytes: "-1.7999999999999999999999999999999998"
512
513strtoIQ returns 41, consuming 4 bytes.
514fI[0] = #bfffcccc cccccccc cccccccc cccccccd
515fI[1] = #bfffcccc cccccccc cccccccc cccccccc
516fI[1] == strtod
517
518
519Input: 1.9
520
521strtoQ consumes 3 bytes and returns 17
522with bits = #3fffe666 66666666 66666666 66666666
523g_Qfmt(0) gives 3 bytes: "1.9"
524
525strtoIQ returns 17, consuming 3 bytes.
526fI[0] = #3fffe666 66666666 66666666 66666666
527fI[1] = #3fffe666 66666666 66666666 66666667
528fI[0] == strtod
529
530
531Input: -1.9
532
533strtoQ consumes 4 bytes and returns 25
534with bits = #bfffe666 66666666 66666666 66666666
535g_Qfmt(0) gives 4 bytes: "-1.9"
536
537strtoIQ returns 25, consuming 4 bytes.
538fI[0] = #bfffe666 66666666 66666666 66666667
539fI[1] = #bfffe666 66666666 66666666 66666666
540fI[1] == strtod
541
542Rounding mode for strtor... changed from 0 (toward zero) to 1 (nearest)
543
544Input: 1.1
545
546strtoQ consumes 3 bytes and returns 33
547with bits = #3fff1999 99999999 99999999 9999999a
548g_Qfmt(0) gives 3 bytes: "1.1"
549
550strtoIQ returns 33, consuming 3 bytes.
551fI[0] = #3fff1999 99999999 99999999 99999999
552fI[1] = #3fff1999 99999999 99999999 9999999a
553fI[1] == strtod
554
555
556Input: -1.1
557
558strtoQ consumes 4 bytes and returns 41
559with bits = #bfff1999 99999999 99999999 9999999a
560g_Qfmt(0) gives 4 bytes: "-1.1"
561
562strtoIQ returns 41, consuming 4 bytes.
563fI[0] = #bfff1999 99999999 99999999 9999999a
564fI[1] = #bfff1999 99999999 99999999 99999999
565fI[0] == strtod
566
567
568Input: 1.2
569
570strtoQ consumes 3 bytes and returns 17
571with bits = #3fff3333 33333333 33333333 33333333
572g_Qfmt(0) gives 3 bytes: "1.2"
573
574strtoIQ returns 17, consuming 3 bytes.
575fI[0] = #3fff3333 33333333 33333333 33333333
576fI[1] = #3fff3333 33333333 33333333 33333334
577fI[0] == strtod
578
579
580Input: -1.2
581
582strtoQ consumes 4 bytes and returns 25
583with bits = #bfff3333 33333333 33333333 33333333
584g_Qfmt(0) gives 4 bytes: "-1.2"
585
586strtoIQ returns 25, consuming 4 bytes.
587fI[0] = #bfff3333 33333333 33333333 33333334
588fI[1] = #bfff3333 33333333 33333333 33333333
589fI[1] == strtod
590
591
592Input: 1.3
593
594strtoQ consumes 3 bytes and returns 33
595with bits = #3fff4ccc cccccccc cccccccc cccccccd
596g_Qfmt(0) gives 3 bytes: "1.3"
597
598strtoIQ returns 33, consuming 3 bytes.
599fI[0] = #3fff4ccc cccccccc cccccccc cccccccc
600fI[1] = #3fff4ccc cccccccc cccccccc cccccccd
601fI[1] == strtod
602
603
604Input: -1.3
605
606strtoQ consumes 4 bytes and returns 41
607with bits = #bfff4ccc cccccccc cccccccc cccccccd
608g_Qfmt(0) gives 4 bytes: "-1.3"
609
610strtoIQ returns 41, consuming 4 bytes.
611fI[0] = #bfff4ccc cccccccc cccccccc cccccccd
612fI[1] = #bfff4ccc cccccccc cccccccc cccccccc
613fI[0] == strtod
614
615
616Input: 1.4
617
618strtoQ consumes 3 bytes and returns 17
619with bits = #3fff6666 66666666 66666666 66666666
620g_Qfmt(0) gives 3 bytes: "1.4"
621
622strtoIQ returns 17, consuming 3 bytes.
623fI[0] = #3fff6666 66666666 66666666 66666666
624fI[1] = #3fff6666 66666666 66666666 66666667
625fI[0] == strtod
626
627
628Input: -1.4
629
630strtoQ consumes 4 bytes and returns 25
631with bits = #bfff6666 66666666 66666666 66666666
632g_Qfmt(0) gives 4 bytes: "-1.4"
633
634strtoIQ returns 25, consuming 4 bytes.
635fI[0] = #bfff6666 66666666 66666666 66666667
636fI[1] = #bfff6666 66666666 66666666 66666666
637fI[1] == strtod
638
639
640Input: 1.5
641
642strtoQ consumes 3 bytes and returns 1
643with bits = #3fff8000 0 0 0
644g_Qfmt(0) gives 3 bytes: "1.5"
645
646strtoIQ returns 1, consuming 3 bytes.
647fI[0] == fI[1] = #3fff8000 0 0 0
648
649
650Input: -1.5
651
652strtoQ consumes 4 bytes and returns 9
653with bits = #bfff8000 0 0 0
654g_Qfmt(0) gives 4 bytes: "-1.5"
655
656strtoIQ returns 9, consuming 4 bytes.
657fI[0] == fI[1] = #bfff8000 0 0 0
658
659
660Input: 1.6
661
662strtoQ consumes 3 bytes and returns 33
663with bits = #3fff9999 99999999 99999999 9999999a
664g_Qfmt(0) gives 3 bytes: "1.6"
665
666strtoIQ returns 33, consuming 3 bytes.
667fI[0] = #3fff9999 99999999 99999999 99999999
668fI[1] = #3fff9999 99999999 99999999 9999999a
669fI[1] == strtod
670
671
672Input: -1.6
673
674strtoQ consumes 4 bytes and returns 41
675with bits = #bfff9999 99999999 99999999 9999999a
676g_Qfmt(0) gives 4 bytes: "-1.6"
677
678strtoIQ returns 41, consuming 4 bytes.
679fI[0] = #bfff9999 99999999 99999999 9999999a
680fI[1] = #bfff9999 99999999 99999999 99999999
681fI[0] == strtod
682
683
684Input: 1.7
685
686strtoQ consumes 3 bytes and returns 17
687with bits = #3fffb333 33333333 33333333 33333333
688g_Qfmt(0) gives 3 bytes: "1.7"
689
690strtoIQ returns 17, consuming 3 bytes.
691fI[0] = #3fffb333 33333333 33333333 33333333
692fI[1] = #3fffb333 33333333 33333333 33333334
693fI[0] == strtod
694
695
696Input: -1.7
697
698strtoQ consumes 4 bytes and returns 25
699with bits = #bfffb333 33333333 33333333 33333333
700g_Qfmt(0) gives 4 bytes: "-1.7"
701
702strtoIQ returns 25, consuming 4 bytes.
703fI[0] = #bfffb333 33333333 33333333 33333334
704fI[1] = #bfffb333 33333333 33333333 33333333
705fI[1] == strtod
706
707
708Input: 1.8
709
710strtoQ consumes 3 bytes and returns 33
711with bits = #3fffcccc cccccccc cccccccc cccccccd
712g_Qfmt(0) gives 3 bytes: "1.8"
713
714strtoIQ returns 33, consuming 3 bytes.
715fI[0] = #3fffcccc cccccccc cccccccc cccccccc
716fI[1] = #3fffcccc cccccccc cccccccc cccccccd
717fI[1] == strtod
718
719
720Input: -1.8
721
722strtoQ consumes 4 bytes and returns 41
723with bits = #bfffcccc cccccccc cccccccc cccccccd
724g_Qfmt(0) gives 4 bytes: "-1.8"
725
726strtoIQ returns 41, consuming 4 bytes.
727fI[0] = #bfffcccc cccccccc cccccccc cccccccd
728fI[1] = #bfffcccc cccccccc cccccccc cccccccc
729fI[0] == strtod
730
731
732Input: 1.9
733
734strtoQ consumes 3 bytes and returns 17
735with bits = #3fffe666 66666666 66666666 66666666
736g_Qfmt(0) gives 3 bytes: "1.9"
737
738strtoIQ returns 17, consuming 3 bytes.
739fI[0] = #3fffe666 66666666 66666666 66666666
740fI[1] = #3fffe666 66666666 66666666 66666667
741fI[0] == strtod
742
743
744Input: -1.9
745
746strtoQ consumes 4 bytes and returns 25
747with bits = #bfffe666 66666666 66666666 66666666
748g_Qfmt(0) gives 4 bytes: "-1.9"
749
750strtoIQ returns 25, consuming 4 bytes.
751fI[0] = #bfffe666 66666666 66666666 66666667
752fI[1] = #bfffe666 66666666 66666666 66666666
753fI[1] == strtod
754
755Rounding mode for strtor... changed from 1 (nearest) to 2 (toward +Infinity)
756
757Input: 1.1
758
759strtoQ consumes 3 bytes and returns 33
760with bits = #3fff1999 99999999 99999999 9999999a
761g_Qfmt(0) gives 3 bytes: "1.1"
762
763strtoIQ returns 33, consuming 3 bytes.
764fI[0] = #3fff1999 99999999 99999999 99999999
765fI[1] = #3fff1999 99999999 99999999 9999999a
766fI[1] == strtod
767
768
769Input: -1.1
770
771strtoQ consumes 4 bytes and returns 25
772with bits = #bfff1999 99999999 99999999 99999999
773g_Qfmt(0) gives 37 bytes: "-1.0999999999999999999999999999999999"
774
775strtoIQ returns 41, consuming 4 bytes.
776fI[0] = #bfff1999 99999999 99999999 9999999a
777fI[1] = #bfff1999 99999999 99999999 99999999
778fI[1] == strtod
779
780
781Input: 1.2
782
783strtoQ consumes 3 bytes and returns 33
784with bits = #3fff3333 33333333 33333333 33333334
785g_Qfmt(0) gives 36 bytes: "1.2000000000000000000000000000000002"
786
787strtoIQ returns 17, consuming 3 bytes.
788fI[0] = #3fff3333 33333333 33333333 33333333
789fI[1] = #3fff3333 33333333 33333333 33333334
790fI[1] == strtod
791
792
793Input: -1.2
794
795strtoQ consumes 4 bytes and returns 25
796with bits = #bfff3333 33333333 33333333 33333333
797g_Qfmt(0) gives 4 bytes: "-1.2"
798
799strtoIQ returns 25, consuming 4 bytes.
800fI[0] = #bfff3333 33333333 33333333 33333334
801fI[1] = #bfff3333 33333333 33333333 33333333
802fI[1] == strtod
803
804
805Input: 1.3
806
807strtoQ consumes 3 bytes and returns 33
808with bits = #3fff4ccc cccccccc cccccccc cccccccd
809g_Qfmt(0) gives 3 bytes: "1.3"
810
811strtoIQ returns 33, consuming 3 bytes.
812fI[0] = #3fff4ccc cccccccc cccccccc cccccccc
813fI[1] = #3fff4ccc cccccccc cccccccc cccccccd
814fI[1] == strtod
815
816
817Input: -1.3
818
819strtoQ consumes 4 bytes and returns 25
820with bits = #bfff4ccc cccccccc cccccccc cccccccc
821g_Qfmt(0) gives 37 bytes: "-1.2999999999999999999999999999999998"
822
823strtoIQ returns 41, consuming 4 bytes.
824fI[0] = #bfff4ccc cccccccc cccccccc cccccccd
825fI[1] = #bfff4ccc cccccccc cccccccc cccccccc
826fI[1] == strtod
827
828
829Input: 1.4
830
831strtoQ consumes 3 bytes and returns 33
832with bits = #3fff6666 66666666 66666666 66666667
833g_Qfmt(0) gives 36 bytes: "1.4000000000000000000000000000000001"
834
835strtoIQ returns 17, consuming 3 bytes.
836fI[0] = #3fff6666 66666666 66666666 66666666
837fI[1] = #3fff6666 66666666 66666666 66666667
838fI[1] == strtod
839
840
841Input: -1.4
842
843strtoQ consumes 4 bytes and returns 25
844with bits = #bfff6666 66666666 66666666 66666666
845g_Qfmt(0) gives 4 bytes: "-1.4"
846
847strtoIQ returns 25, consuming 4 bytes.
848fI[0] = #bfff6666 66666666 66666666 66666667
849fI[1] = #bfff6666 66666666 66666666 66666666
850fI[1] == strtod
851
852
853Input: 1.5
854
855strtoQ consumes 3 bytes and returns 1
856with bits = #3fff8000 0 0 0
857g_Qfmt(0) gives 3 bytes: "1.5"
858
859strtoIQ returns 1, consuming 3 bytes.
860fI[0] == fI[1] = #3fff8000 0 0 0
861
862
863Input: -1.5
864
865strtoQ consumes 4 bytes and returns 9
866with bits = #bfff8000 0 0 0
867g_Qfmt(0) gives 4 bytes: "-1.5"
868
869strtoIQ returns 9, consuming 4 bytes.
870fI[0] == fI[1] = #bfff8000 0 0 0
871
872
873Input: 1.6
874
875strtoQ consumes 3 bytes and returns 33
876with bits = #3fff9999 99999999 99999999 9999999a
877g_Qfmt(0) gives 3 bytes: "1.6"
878
879strtoIQ returns 33, consuming 3 bytes.
880fI[0] = #3fff9999 99999999 99999999 99999999
881fI[1] = #3fff9999 99999999 99999999 9999999a
882fI[1] == strtod
883
884
885Input: -1.6
886
887strtoQ consumes 4 bytes and returns 25
888with bits = #bfff9999 99999999 99999999 99999999
889g_Qfmt(0) gives 37 bytes: "-1.5999999999999999999999999999999999"
890
891strtoIQ returns 41, consuming 4 bytes.
892fI[0] = #bfff9999 99999999 99999999 9999999a
893fI[1] = #bfff9999 99999999 99999999 99999999
894fI[1] == strtod
895
896
897Input: 1.7
898
899strtoQ consumes 3 bytes and returns 33
900with bits = #3fffb333 33333333 33333333 33333334
901g_Qfmt(0) gives 36 bytes: "1.7000000000000000000000000000000002"
902
903strtoIQ returns 17, consuming 3 bytes.
904fI[0] = #3fffb333 33333333 33333333 33333333
905fI[1] = #3fffb333 33333333 33333333 33333334
906fI[1] == strtod
907
908
909Input: -1.7
910
911strtoQ consumes 4 bytes and returns 25
912with bits = #bfffb333 33333333 33333333 33333333
913g_Qfmt(0) gives 4 bytes: "-1.7"
914
915strtoIQ returns 25, consuming 4 bytes.
916fI[0] = #bfffb333 33333333 33333333 33333334
917fI[1] = #bfffb333 33333333 33333333 33333333
918fI[1] == strtod
919
920
921Input: 1.8
922
923strtoQ consumes 3 bytes and returns 33
924with bits = #3fffcccc cccccccc cccccccc cccccccd
925g_Qfmt(0) gives 3 bytes: "1.8"
926
927strtoIQ returns 33, consuming 3 bytes.
928fI[0] = #3fffcccc cccccccc cccccccc cccccccc
929fI[1] = #3fffcccc cccccccc cccccccc cccccccd
930fI[1] == strtod
931
932
933Input: -1.8
934
935strtoQ consumes 4 bytes and returns 25
936with bits = #bfffcccc cccccccc cccccccc cccccccc
937g_Qfmt(0) gives 37 bytes: "-1.7999999999999999999999999999999998"
938
939strtoIQ returns 41, consuming 4 bytes.
940fI[0] = #bfffcccc cccccccc cccccccc cccccccd
941fI[1] = #bfffcccc cccccccc cccccccc cccccccc
942fI[1] == strtod
943
944
945Input: 1.9
946
947strtoQ consumes 3 bytes and returns 33
948with bits = #3fffe666 66666666 66666666 66666667
949g_Qfmt(0) gives 36 bytes: "1.9000000000000000000000000000000001"
950
951strtoIQ returns 17, consuming 3 bytes.
952fI[0] = #3fffe666 66666666 66666666 66666666
953fI[1] = #3fffe666 66666666 66666666 66666667
954fI[1] == strtod
955
956
957Input: -1.9
958
959strtoQ consumes 4 bytes and returns 25
960with bits = #bfffe666 66666666 66666666 66666666
961g_Qfmt(0) gives 4 bytes: "-1.9"
962
963strtoIQ returns 25, consuming 4 bytes.
964fI[0] = #bfffe666 66666666 66666666 66666667
965fI[1] = #bfffe666 66666666 66666666 66666666
966fI[1] == strtod
967
968Rounding mode for strtor... changed from 2 (toward +Infinity) to 3 (toward -Infinity)
969
970Input: 1.1
971
972strtoQ consumes 3 bytes and returns 17
973with bits = #3fff1999 99999999 99999999 99999999
974g_Qfmt(0) gives 36 bytes: "1.0999999999999999999999999999999999"
975
976strtoIQ returns 33, consuming 3 bytes.
977fI[0] = #3fff1999 99999999 99999999 99999999
978fI[1] = #3fff1999 99999999 99999999 9999999a
979fI[0] == strtod
980
981
982Input: -1.1
983
984strtoQ consumes 4 bytes and returns 41
985with bits = #bfff1999 99999999 99999999 9999999a
986g_Qfmt(0) gives 4 bytes: "-1.1"
987
988strtoIQ returns 41, consuming 4 bytes.
989fI[0] = #bfff1999 99999999 99999999 9999999a
990fI[1] = #bfff1999 99999999 99999999 99999999
991fI[0] == strtod
992
993
994Input: 1.2
995
996strtoQ consumes 3 bytes and returns 17
997with bits = #3fff3333 33333333 33333333 33333333
998g_Qfmt(0) gives 3 bytes: "1.2"
999
1000strtoIQ returns 17, consuming 3 bytes.
1001fI[0] = #3fff3333 33333333 33333333 33333333
1002fI[1] = #3fff3333 33333333 33333333 33333334
1003fI[0] == strtod
1004
1005
1006Input: -1.2
1007
1008strtoQ consumes 4 bytes and returns 41
1009with bits = #bfff3333 33333333 33333333 33333334
1010g_Qfmt(0) gives 37 bytes: "-1.2000000000000000000000000000000002"
1011
1012strtoIQ returns 25, consuming 4 bytes.
1013fI[0] = #bfff3333 33333333 33333333 33333334
1014fI[1] = #bfff3333 33333333 33333333 33333333
1015fI[0] == strtod
1016
1017
1018Input: 1.3
1019
1020strtoQ consumes 3 bytes and returns 17
1021with bits = #3fff4ccc cccccccc cccccccc cccccccc
1022g_Qfmt(0) gives 36 bytes: "1.2999999999999999999999999999999998"
1023
1024strtoIQ returns 33, consuming 3 bytes.
1025fI[0] = #3fff4ccc cccccccc cccccccc cccccccc
1026fI[1] = #3fff4ccc cccccccc cccccccc cccccccd
1027fI[0] == strtod
1028
1029
1030Input: -1.3
1031
1032strtoQ consumes 4 bytes and returns 41
1033with bits = #bfff4ccc cccccccc cccccccc cccccccd
1034g_Qfmt(0) gives 4 bytes: "-1.3"
1035
1036strtoIQ returns 41, consuming 4 bytes.
1037fI[0] = #bfff4ccc cccccccc cccccccc cccccccd
1038fI[1] = #bfff4ccc cccccccc cccccccc cccccccc
1039fI[0] == strtod
1040
1041
1042Input: 1.4
1043
1044strtoQ consumes 3 bytes and returns 17
1045with bits = #3fff6666 66666666 66666666 66666666
1046g_Qfmt(0) gives 3 bytes: "1.4"
1047
1048strtoIQ returns 17, consuming 3 bytes.
1049fI[0] = #3fff6666 66666666 66666666 66666666
1050fI[1] = #3fff6666 66666666 66666666 66666667
1051fI[0] == strtod
1052
1053
1054Input: -1.4
1055
1056strtoQ consumes 4 bytes and returns 41
1057with bits = #bfff6666 66666666 66666666 66666667
1058g_Qfmt(0) gives 37 bytes: "-1.4000000000000000000000000000000001"
1059
1060strtoIQ returns 25, consuming 4 bytes.
1061fI[0] = #bfff6666 66666666 66666666 66666667
1062fI[1] = #bfff6666 66666666 66666666 66666666
1063fI[0] == strtod
1064
1065
1066Input: 1.5
1067
1068strtoQ consumes 3 bytes and returns 1
1069with bits = #3fff8000 0 0 0
1070g_Qfmt(0) gives 3 bytes: "1.5"
1071
1072strtoIQ returns 1, consuming 3 bytes.
1073fI[0] == fI[1] = #3fff8000 0 0 0
1074
1075
1076Input: -1.5
1077
1078strtoQ consumes 4 bytes and returns 9
1079with bits = #bfff8000 0 0 0
1080g_Qfmt(0) gives 4 bytes: "-1.5"
1081
1082strtoIQ returns 9, consuming 4 bytes.
1083fI[0] == fI[1] = #bfff8000 0 0 0
1084
1085
1086Input: 1.6
1087
1088strtoQ consumes 3 bytes and returns 17
1089with bits = #3fff9999 99999999 99999999 99999999
1090g_Qfmt(0) gives 36 bytes: "1.5999999999999999999999999999999999"
1091
1092strtoIQ returns 33, consuming 3 bytes.
1093fI[0] = #3fff9999 99999999 99999999 99999999
1094fI[1] = #3fff9999 99999999 99999999 9999999a
1095fI[0] == strtod
1096
1097
1098Input: -1.6
1099
1100strtoQ consumes 4 bytes and returns 41
1101with bits = #bfff9999 99999999 99999999 9999999a
1102g_Qfmt(0) gives 4 bytes: "-1.6"
1103
1104strtoIQ returns 41, consuming 4 bytes.
1105fI[0] = #bfff9999 99999999 99999999 9999999a
1106fI[1] = #bfff9999 99999999 99999999 99999999
1107fI[0] == strtod
1108
1109
1110Input: 1.7
1111
1112strtoQ consumes 3 bytes and returns 17
1113with bits = #3fffb333 33333333 33333333 33333333
1114g_Qfmt(0) gives 3 bytes: "1.7"
1115
1116strtoIQ returns 17, consuming 3 bytes.
1117fI[0] = #3fffb333 33333333 33333333 33333333
1118fI[1] = #3fffb333 33333333 33333333 33333334
1119fI[0] == strtod
1120
1121
1122Input: -1.7
1123
1124strtoQ consumes 4 bytes and returns 41
1125with bits = #bfffb333 33333333 33333333 33333334
1126g_Qfmt(0) gives 37 bytes: "-1.7000000000000000000000000000000002"
1127
1128strtoIQ returns 25, consuming 4 bytes.
1129fI[0] = #bfffb333 33333333 33333333 33333334
1130fI[1] = #bfffb333 33333333 33333333 33333333
1131fI[0] == strtod
1132
1133
1134Input: 1.8
1135
1136strtoQ consumes 3 bytes and returns 17
1137with bits = #3fffcccc cccccccc cccccccc cccccccc
1138g_Qfmt(0) gives 36 bytes: "1.7999999999999999999999999999999998"
1139
1140strtoIQ returns 33, consuming 3 bytes.
1141fI[0] = #3fffcccc cccccccc cccccccc cccccccc
1142fI[1] = #3fffcccc cccccccc cccccccc cccccccd
1143fI[0] == strtod
1144
1145
1146Input: -1.8
1147
1148strtoQ consumes 4 bytes and returns 41
1149with bits = #bfffcccc cccccccc cccccccc cccccccd
1150g_Qfmt(0) gives 4 bytes: "-1.8"
1151
1152strtoIQ returns 41, consuming 4 bytes.
1153fI[0] = #bfffcccc cccccccc cccccccc cccccccd
1154fI[1] = #bfffcccc cccccccc cccccccc cccccccc
1155fI[0] == strtod
1156
1157
1158Input: 1.9
1159
1160strtoQ consumes 3 bytes and returns 17
1161with bits = #3fffe666 66666666 66666666 66666666
1162g_Qfmt(0) gives 3 bytes: "1.9"
1163
1164strtoIQ returns 17, consuming 3 bytes.
1165fI[0] = #3fffe666 66666666 66666666 66666666
1166fI[1] = #3fffe666 66666666 66666666 66666667
1167fI[0] == strtod
1168
1169
1170Input: -1.9
1171
1172strtoQ consumes 4 bytes and returns 41
1173with bits = #bfffe666 66666666 66666666 66666667
1174g_Qfmt(0) gives 37 bytes: "-1.9000000000000000000000000000000001"
1175
1176strtoIQ returns 25, consuming 4 bytes.
1177fI[0] = #bfffe666 66666666 66666666 66666667
1178fI[1] = #bfffe666 66666666 66666666 66666666
1179fI[0] == strtod
1180
1181