MCPcopy Create free account
hub / github.com/ByConity/ByConity / formatReadableQuantity

Function formatReadableQuantity

src/Common/formatReadable.cpp:66–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64
65
66void formatReadableQuantity(double value, DB::WriteBuffer & out, int precision)
67{
68 const char * units[] = {"", " thousand", " million", " billion", " trillion", " quadrillion"};
69 formatReadable(value, out, precision, units, sizeof(units) / sizeof(units[0]), 1000);
70}
71
72std::string formatReadableQuantity(double value, int precision)
73{

Callers 11

tryProcessTableMethod · 0.85
checkPartsMethod · 0.85
processFileMethod · 0.85
sendMethod · 0.85
checkMethod · 0.85
writeFinalProgressMethod · 0.85
writeProgressMethod · 0.85
dumpDataForTablesFunction · 0.85
doResyncTableMethod · 0.85
formatMethod · 0.85

Calls 2

formatReadableFunction · 0.85
strMethod · 0.45

Tested by

no test coverage detected