https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81122

--- Comment #28 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It certainly does read hex floats.

#include <charconv>
#include <string_view>
#include <iostream>

int main()
{
  std::string_view str = "1.abcp4";
  double d;
  from_chars(str.data(), str.data() + str.size(), d, std::chars_format::hex);
  std::cout << d << '\n';
  std::cout << 0x1.abcp4 << '\n';
}

26.7344
26.7344

Reply via email to