regression/boundary/around 1e23
About this case
1e23 is exactly halfway between the second and third of these: it is the answer for the second, whose significand is even, and wrong for the third.
- Source
- Focused regression
- Topics
- boundary neighbours
- Input
- 4 values · 32 B · raw bytes
- Output
- 74 B
- Archive
000313_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 | 44b52d02c7e14af5 |
9.999999999999997e+22 |
| 2 | 44b52d02c7e14af6 |
1e+23 |
| 3 | 44b52d02c7e14af7 |
1.0000000000000001e+23 |
| 4 | 44b52d02c7e14af8 |
1.0000000000000003e+23 |
Expected output
The output must match these bytes exactly.
9.999999999999997e+22
1e+23
1.0000000000000001e+23
1.0000000000000003e+23