| 1 |
#include "fast_float/fast_float.h" |
| 2 |
|
| 3 |
double get9(char const *input) { |
| 4 |
double result_value; |
| 5 |
auto result = |
| 6 |
fast_float::from_chars(input, input + strlen(input), result_value); |
| 7 |
if (result.ec != std::errc()) { |
| 8 |
return 9; |
| 9 |
} |
| 10 |
return result_value; |
| 11 |
} |