regression/power of two/2^398 to 2^461

About this case

Powers of two, where the gap to the next double down is half the gap up.

Source
Focused regression
Input
64 values · 512 B · raw bytes
Output
1.5 KiB
Archive
000246_must_render_exactly/input

Input

Each value is 8 bytes, little-endian. Its bits are shown most significant first, as RFC 8785 Appendix B writes them, so 3ff0000000000000 is 1.

# Bits (hex) Expected
1 58d0000000000000 6.455624695217272e+119
2 58e0000000000000 1.2911249390434543e+120
3 58f0000000000000 2.5822498780869086e+120
4 5900000000000000 5.164499756173817e+120
5 5910000000000000 1.0328999512347634e+121
6 5920000000000000 2.065799902469527e+121
7 5930000000000000 4.131599804939054e+121
8 5940000000000000 8.263199609878108e+121
9 5950000000000000 1.6526399219756215e+122
10 5960000000000000 3.305279843951243e+122
11 5970000000000000 6.610559687902486e+122
12 5980000000000000 1.3221119375804972e+123
13 5990000000000000 2.6442238751609944e+123
14 59a0000000000000 5.288447750321989e+123
15 59b0000000000000 1.0576895500643978e+124
16 59c0000000000000 2.1153791001287955e+124
17 59d0000000000000 4.230758200257591e+124
18 59e0000000000000 8.461516400515182e+124
19 59f0000000000000 1.6923032801030364e+125
20 5a00000000000000 3.384606560206073e+125
21 5a10000000000000 6.769213120412146e+125
22 5a20000000000000 1.3538426240824291e+126
23 5a30000000000000 2.7076852481648583e+126
24 5a40000000000000 5.415370496329717e+126
25 5a50000000000000 1.0830740992659433e+127
26 5a60000000000000 2.1661481985318866e+127
27 5a70000000000000 4.332296397063773e+127
28 5a80000000000000 8.664592794127546e+127
29 5a90000000000000 1.7329185588255093e+128
30 5aa0000000000000 3.4658371176510186e+128
31 5ab0000000000000 6.931674235302037e+128
32 5ac0000000000000 1.3863348470604074e+129
33 5ad0000000000000 2.772669694120815e+129
34 5ae0000000000000 5.54533938824163e+129
35 5af0000000000000 1.109067877648326e+130
36 5b00000000000000 2.218135755296652e+130
37 5b10000000000000 4.436271510593304e+130
38 5b20000000000000 8.872543021186608e+130
39 5b30000000000000 1.7745086042373215e+131
40 5b40000000000000 3.549017208474643e+131
41 5b50000000000000 7.098034416949286e+131
42 5b60000000000000 1.4196068833898572e+132
43 5b70000000000000 2.8392137667797144e+132
44 5b80000000000000 5.678427533559429e+132
45 5b90000000000000 1.1356855067118858e+133
46 5ba0000000000000 2.2713710134237715e+133
47 5bb0000000000000 4.542742026847543e+133
48 5bc0000000000000 9.085484053695086e+133
49 5bd0000000000000 1.8170968107390172e+134
50 5be0000000000000 3.6341936214780345e+134
51 5bf0000000000000 7.268387242956069e+134
52 5c00000000000000 1.4536774485912138e+135
53 5c10000000000000 2.9073548971824276e+135
54 5c20000000000000 5.814709794364855e+135
55 5c30000000000000 1.162941958872971e+136
56 5c40000000000000 2.325883917745942e+136
57 5c50000000000000 4.651767835491884e+136
58 5c60000000000000 9.303535670983768e+136
59 5c70000000000000 1.8607071341967536e+137
60 5c80000000000000 3.7214142683935073e+137
61 5c90000000000000 7.442828536787015e+137
62 5ca0000000000000 1.488565707357403e+138
63 5cb0000000000000 2.977131414714806e+138
64 5cc0000000000000 5.954262829429612e+138

Expected output

The output must match these bytes exactly.

6.455624695217272e+119
1.2911249390434543e+120
2.5822498780869086e+120
5.164499756173817e+120
1.0328999512347634e+121
2.065799902469527e+121
4.131599804939054e+121
8.263199609878108e+121
1.6526399219756215e+122
3.305279843951243e+122
6.610559687902486e+122
1.3221119375804972e+123
2.6442238751609944e+123
5.288447750321989e+123
1.0576895500643978e+124
2.1153791001287955e+124
4.230758200257591e+124
8.461516400515182e+124
1.6923032801030364e+125
3.384606560206073e+125
6.769213120412146e+125
1.3538426240824291e+126
2.7076852481648583e+126
5.415370496329717e+126
1.0830740992659433e+127
2.1661481985318866e+127
4.332296397063773e+127
8.664592794127546e+127
1.7329185588255093e+128
3.4658371176510186e+128
6.931674235302037e+128
1.3863348470604074e+129
2.772669694120815e+129
5.54533938824163e+129
1.109067877648326e+130
2.218135755296652e+130
4.436271510593304e+130
8.872543021186608e+130
1.7745086042373215e+131
3.549017208474643e+131
7.098034416949286e+131
1.4196068833898572e+132
2.8392137667797144e+132
5.678427533559429e+132
1.1356855067118858e+133
2.2713710134237715e+133
4.542742026847543e+133
9.085484053695086e+133
1.8170968107390172e+134
3.6341936214780345e+134
7.268387242956069e+134
1.4536774485912138e+135
2.9073548971824276e+135
5.814709794364855e+135
1.162941958872971e+136
2.325883917745942e+136
4.651767835491884e+136
9.303535670983768e+136
1.8607071341967536e+137
3.7214142683935073e+137
7.442828536787015e+137
1.488565707357403e+138
2.977131414714806e+138
5.954262829429612e+138