| 109 | } // end namespace |
| 110 | |
| 111 | void AppendHumanReadable(int n, std::string* str) { |
| 112 | std::stringstream ss; |
| 113 | // Round down to the nearest SI prefix. |
| 114 | ss << ToBinaryStringFullySpecified(n, 1.0, 0); |
| 115 | *str += ss.str(); |
| 116 | } |
| 117 | |
| 118 | std::string HumanReadableNumber(double n, double one_k) { |
| 119 | // 1.1 means that figures up to 1.1k should be shown with the next unit down; |
nothing calls this directly
no test coverage detected