blob: 60d8274d9352095b66b1d9f3342f458694dd09b3 [file] [log] [blame]
#include "fast_float/fast_float.h"
double get2(char const *input) {
double result_value;
auto result =
fast_float::from_chars(input, input + strlen(input), result_value);
if (result.ec != std::errc()) {
return 2;
}
return result_value;
}