tlx
format_si_iec_units.cpp File Reference
#include <tlx/string/format_si_iec_units.hpp>
#include <iomanip>
#include <sstream>

Go to the source code of this file.

Namespaces

 tlx
 

Functions

std::string format_si_units (uint64_t number, int precision)
 Format number as something like 1 TB. More...
 
std::string format_iec_units (uint64_t number, int precision=3)
 Format a byte size using IEC (Ki, Mi, Gi, Ti) suffixes (powers of two). More...