Daniel Lemire 5ad6aae0b1 lint
2024-08-14 09:57:47 -04:00

11 lines
258 B
C++

#include "fast_float/fast_float.h"
double get3(const char *input) {
double result_value;
auto result =
fast_float::from_chars(input, input + strlen(input), result_value);
if (result.ec != std::errc()) {
return 3;
}
return result_value;
}