コード例 #1
0
ファイル: Torrent.cpp プロジェクト: octisetti/gTorrent
string Torrent::getTextTotalRatio()
{
	std::stringstream ttr (stringstream::in | stringstream::out);

	float ratio = getTotalRatio();

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

	return ttr.str();
}
コード例 #2
0
ファイル: Torrent.cpp プロジェクト: fuyukaidesu/gtorrent-core
std::string gt::Torrent::getTextTotalRatio()
{
	std::ostringstream ttr;
	ttr << std::fixed << std::setprecision(3) << getTotalRatio();
	return ttr.str();
}