[libcxx-commits] [libcxx] [libc++][test] Adjust expected hexfloat format (PR #95011)
David Tenty via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jun 14 10:41:49 PDT 2024
daltenty wrote:
> I think the printf behaviour your seeing is invalid. The test sets a precision of zero, and according to the C standard:
>
Actually turns out the C++ standard has a specific carve-out for precision in the case of hexfloat (i.e. `ios_base::fixed | ios_base::
scientific` where no precision is specified in the format string it passes, so this is actually conformant.
https://github.com/llvm/llvm-project/pull/95011
More information about the libcxx-commits
mailing list