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