| 119 | } |
| 120 | |
| 121 | std::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 | |
| 128 | std::string StrFormatImp(const char* msg, va_list args) { |
| 129 | // we might need a second shot at this, so pre-emptivly make a copy |
no test coverage detected