MCPcopy Create free account
hub / github.com/apache/kvrocks / Float2String

Function Float2String

src/common/string_util.cc:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31namespace util {
32
33std::string Float2String(double d) {
34 if (std::isinf(d)) {
35 return d > 0 ? "inf" : "-inf";
36 }
37
38 return fmt::format("{:.17g}", d);
39}
40
41std::string ToLower(std::string in) {
42 std::transform(in.begin(), in.end(), in.begin(), [](char c) -> char { return static_cast<char>(std::tolower(c)); });

Callers 8

parseComplexKVMethod · 0.85
IncrByFloatMethod · 0.85
IncrByFloatMethod · 0.85
ExecuteMethod · 0.85
ExecuteMethod · 0.85
ExecuteMethod · 0.85
DoubleFunction · 0.85
migrateComplexKeyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected