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