24 const std::string & symbol_r,
25 unsigned field_width_r,
26 unsigned unit_width_r,
29 std::string ret =
str::form(
"%*.*f", field_width_r, prec_r, val_r );
32 ret +=
str::form(
" %*s", unit_width_r, symbol_r.c_str() );
std::string form(ValueType val_r, unsigned field_width_r=0, unsigned unit_width_r=1) const
Build string representation of val_r.
std::string form(const char *format,...)
Printf style construction of std::string.