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

Function AppendHumanReadable

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

Source from the content-addressed store, hash-verified

112} // end namespace
113
114void AppendHumanReadable(int n, std::string* str) {
115 std::stringstream ss;
116 // Round down to the nearest SI prefix.
117 ss << ToBinaryStringFullySpecified(n, 1.0, 0);
118 *str += ss.str();
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;

Callers

nothing calls this directly

Calls 2

strMethod · 0.45

Tested by

no test coverage detected