Update README.md

This commit is contained in:
HedgehogInTheCPP 2025-03-27 22:05:43 +03:00 committed by GitHub
parent 67aeda07ad
commit 82477e9310
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -386,7 +386,7 @@ the code size and improve performance:
int main() {
std::string input = "23.14069263277926900572";
double result;
auto answer = fast_float::from_chars_advanced(input.data(), input.data() + input.size(), result);
auto answer = fast_float::from_chars(input.data(), input.data() + input.size(), result);
if ((answer.ec != std::errc()) || ((result != 23.14069263277927 /*properly rounded value */)))
{ std::cerr << "parsing failure\n"; return EXIT_FAILURE; }
input = "-23.14069263277926900572";