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

Function DoubleToStr

include/LightGBM/utils/common.h:366–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364}
365
366inline static void DoubleToStr(double value, char* buffer, size_t
367 #ifdef _MSC_VER
368 buffer_len
369 #endif
370) {
371 #ifdef _MSC_VER
372 sprintf_s(buffer, buffer_len, "%.17g", value);
373 #else
374 sprintf(buffer, "%.17g", value);
375 #endif
376}
377
378inline static const char* SkipSpaceAndTab(const char* p) {
379 while (*p == ' ' || *p == '\t') {

Callers 1

ArrayToStringFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected