MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / AtofAndCheck

Function AtofAndCheck

include/LightGBM/utils/common.h:280–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280inline static bool AtofAndCheck(const char* p, double* out) {
281 const char* after = Atof(p, out);
282 if (*after != '\0') {
283 return false;
284 }
285 return true;
286}
287
288inline static unsigned CountDecimalDigit32(uint32_t n) {
289#if defined(_MSC_VER) || defined(__GNUC__)

Callers 1

GetDoubleMethod · 0.50

Calls 1

AtofFunction · 0.70

Tested by

no test coverage detected