MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / HumanReadableNumber

Function HumanReadableNumber

deps/google-benchmark/src/string_util.cc:121–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121std::string HumanReadableNumber(double n, double one_k) {
122 // 1.1 means that figures up to 1.1k should be shown with the next unit down;
123 // this softens edge effects.
124 // 1 means that we should show one decimal place of precision.
125 return ToBinaryStringFullySpecified(n, 1.1, 1, one_k);
126}
127
128std::string StrFormatImp(const char* msg, va_list args) {
129 // we might need a second shot at this, so pre-emptivly make a copy

Callers 1

PrintRunDataMethod · 0.85

Calls 1

Tested by

no test coverage detected