示例#1
0
string Torrent::getTextTotalRatio()
{
	std::stringstream ttr (stringstream::in | stringstream::out);

	float ratio = getTotalRatio();

	ttr << fixed << setprecision(3) << ratio;

	return ttr.str();
}
示例#2
0
std::string gt::Torrent::getTextTotalRatio()
{
	std::ostringstream ttr;
	ttr << std::fixed << std::setprecision(3) << getTotalRatio();
	return ttr.str();
}