rfc8785/max pos number

About this case

RFC 8785 Appendix B: 7fefffffffffffff serializes as 1.7976931348623157e+308 (Max pos number).

Topics
rfc8785
Input
1 value · 8 B · raw bytes
Output
24 B
Archive
000004_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 7fefffffffffffff 1.7976931348623157e+308

Expected output

The output must match these bytes exactly.

1.7976931348623157e+308