mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-07 01:06:48 +08:00
9 lines
255 B
C++
9 lines
255 B
C++
#include "fast_float/fast_float.h"
|
|
|
|
|
|
double get9(const char* input) {
|
|
double result_value;
|
|
auto result = fast_float::from_chars(input, input + strlen(input), result_value);
|
|
if (result.ec != std::errc()) { return 9; }
|
|
return result_value;
|
|
} |