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