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

--- Comment #29 from M Welinder <terra at gnome dot org> ---
but not with a 0x prefix (And general format):

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

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

Reply via email to