string Torrent::getTextTotalRatio() { std::stringstream ttr (stringstream::in | stringstream::out); float ratio = getTotalRatio(); ttr << fixed << setprecision(3) << ratio; return ttr.str(); }
std::string gt::Torrent::getTextTotalRatio() { std::ostringstream ttr; ttr << std::fixed << std::setprecision(3) << getTotalRatio(); return ttr.str(); }