MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / NumToString

Function NumToString

src/base/strings.h:128–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128static inline std::string NumToString(double num) {
129 char buf[32];
130 snprintf(buf, sizeof(buf), "%.3f", num);
131 return std::string(buf);
132}
133
134static inline std::string HumanReadableString(int64_t num) {
135 static const int max_shift = 6;

Callers 1

HumanReadableStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected