13 Oct
2025
13 Oct
'25
11:01 a.m.
Matt Borland wrote:
I bring it up because per {fmt}'s "available presentation types for floating-point values" they don't have x for hexfloat and a for actual like printf, only a for hexfloat. Yes, legally I can inject whatever I want into the fmt namespace, but I would rather strictly add to rather than re-interpret existing meanings.
I don't understand what's there to inject. `a` for binary floats in libfmt and C++20 prints what %a in printf prints for binary floats. It prints binary floats in hex because that's what printf does. From that it in no way follows that it should print decimal floats in hex, entirely unlike what printf does.