regression/json/prices

About this case

Two-decimal amounts as parsed from JSON: each must come back as it was written.

Source
Focused regression
Input
101 values · 808 B · raw bytes
Output
679 B
Archive
000327_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 0000000000000000 0
2 4023f0a3d70a3d71 9.97
3 4033f0a3d70a3d71 19.94
4 403de8f5c28f5c29 29.91
5 4043f0a3d70a3d71 39.88
6 4048eccccccccccd 49.85
7 404de8f5c28f5c29 59.82
8 4051728f5c28f5c3 69.79
9 4053f0a3d70a3d71 79.76
10 40566eb851eb851f 89.73
11 4058eccccccccccd 99.7
12 405b6ae147ae147b 109.67
13 405de8f5c28f5c29 119.64
14 406033851eb851ec 129.61
15 4061728f5c28f5c3 139.58
16 4062b1999999999a 149.55
17 4063f0a3d70a3d71 159.52
18 40652fae147ae148 169.49
19 40666eb851eb851f 179.46
20 4067adc28f5c28f6 189.43
21 4068eccccccccccd 199.4
22 406a2bd70a3d70a4 209.37
23 406b6ae147ae147b 219.34
24 406ca9eb851eb852 229.31
25 406de8f5c28f5c29 239.28
26 406f280000000000 249.25
27 407033851eb851ec 259.22
28 4070d30a3d70a3d7 269.19
29 4071728f5c28f5c3 279.16
30 407212147ae147ae 289.13
31 4072b1999999999a 299.1
32 4073511eb851eb85 309.07
33 4073f0a3d70a3d71 319.04
34 40749028f5c28f5c 329.01
35 40752fae147ae148 338.98
36 4075cf3333333333 348.95
37 40766eb851eb851f 358.92
38 40770e3d70a3d70a 368.89
39 4077adc28f5c28f6 378.86
40 40784d47ae147ae1 388.83
41 4078eccccccccccd 398.8
42 40798c51eb851eb8 408.77
43 407a2bd70a3d70a4 418.74
44 407acb5c28f5c28f 428.71
45 407b6ae147ae147b 438.68
46 407c0a6666666666 448.65
47 407ca9eb851eb852 458.62
48 407d4970a3d70a3d 468.59
49 407de8f5c28f5c29 478.56
50 407e887ae147ae14 488.53
51 407f280000000000 498.5
52 407fc7851eb851ec 508.47
53 408033851eb851ec 518.44
54 40808347ae147ae1 528.41
55 4080d30a3d70a3d7 538.38
56 408122cccccccccd 548.35
57 4081728f5c28f5c3 558.32
58 4081c251eb851eb8 568.29
59 408212147ae147ae 578.26
60 408261d70a3d70a4 588.23
61 4082b1999999999a 598.2
62 4083015c28f5c28f 608.17
63 4083511eb851eb85 618.14
64 4083a0e147ae147b 628.11
65 4083f0a3d70a3d71 638.08
66 4084406666666666 648.05
67 40849028f5c28f5c 658.02
68 4084dfeb851eb852 667.99
69 40852fae147ae148 677.96
70 40857f70a3d70a3d 687.93
71 4085cf3333333333 697.9
72 40861ef5c28f5c29 707.87
73 40866eb851eb851f 717.84
74 4086be7ae147ae14 727.81
75 40870e3d70a3d70a 737.78
76 40875e0000000000 747.75
77 4087adc28f5c28f6 757.72
78 4087fd851eb851ec 767.69
79 40884d47ae147ae1 777.66
80 40889d0a3d70a3d7 787.63
81 4088eccccccccccd 797.6
82 40893c8f5c28f5c3 807.57
83 40898c51eb851eb8 817.54
84 4089dc147ae147ae 827.51
85 408a2bd70a3d70a4 837.48
86 408a7b999999999a 847.45
87 408acb5c28f5c28f 857.42
88 408b1b1eb851eb85 867.39
89 408b6ae147ae147b 877.36
90 408bbaa3d70a3d71 887.33
91 408c0a6666666666 897.3
92 408c5a28f5c28f5c 907.27
93 408ca9eb851eb852 917.24
94 408cf9ae147ae148 927.21
95 408d4970a3d70a3d 937.18
96 408d993333333333 947.15
97 408de8f5c28f5c29 957.12
98 408e38b851eb851f 967.09
99 408e887ae147ae14 977.06
100 408ed83d70a3d70a 987.03
101 408f280000000000 997

Expected output

The output must match these bytes exactly.

0
9.97
19.94
29.91
39.88
49.85
59.82
69.79
79.76
89.73
99.7
109.67
119.64
129.61
139.58
149.55
159.52
169.49
179.46
189.43
199.4
209.37
219.34
229.31
239.28
249.25
259.22
269.19
279.16
289.13
299.1
309.07
319.04
329.01
338.98
348.95
358.92
368.89
378.86
388.83
398.8
408.77
418.74
428.71
438.68
448.65
458.62
468.59
478.56
488.53
498.5
508.47
518.44
528.41
538.38
548.35
558.32
568.29
578.26
588.23
598.2
608.17
618.14
628.11
638.08
648.05
658.02
667.99
677.96
687.93
697.9
707.87
717.84
727.81
737.78
747.75
757.72
767.69
777.66
787.63
797.6
807.57
817.54
827.51
837.48
847.45
857.42
867.39
877.36
887.33
897.3
907.27
917.24
927.21
937.18
947.15
957.12
967.09
977.06
987.03
997