|
tlx
|
#include <tlx/string/format_si_iec_units.hpp>#include <cstdint>#include <iomanip>#include <sstream>Go to the source code of this file.
Namespaces | |
| namespace | tlx |
Functions | |
| std::string | format_si_units (std::uint64_t number, int precision) |
| Format number as something like 1 TB. | |
| std::string | format_iec_units (std::uint64_t number, int precision=3) |
| Format a byte size using IEC (Ki, Mi, Gi, Ti) suffixes (powers of two). | |