add int PrettyPercent
This commit is contained in:
@@ -129,7 +129,7 @@ CString SecondsToMMSSMsMs( float fSecs )
|
|||||||
|
|
||||||
CString PrettyPercent( float fNumerator, float fDenominator)
|
CString PrettyPercent( float fNumerator, float fDenominator)
|
||||||
{
|
{
|
||||||
return ssprintf("%0.2f%%",(float)fNumerator/(float)fDenominator*100);
|
return ssprintf("%0.2f%%",fNumerator/fDenominator*100);
|
||||||
}
|
}
|
||||||
|
|
||||||
CString Commify( int iNum )
|
CString Commify( int iNum )
|
||||||
|
|||||||
@@ -141,6 +141,7 @@ float HHMMSSToSeconds( const CString &sHMS );
|
|||||||
CString SecondsToHHMMSS( float fSecs );
|
CString SecondsToHHMMSS( float fSecs );
|
||||||
CString SecondsToMMSSMsMs( float fSecs );
|
CString SecondsToMMSSMsMs( float fSecs );
|
||||||
CString PrettyPercent( float fNumerator, float fDenominator );
|
CString PrettyPercent( float fNumerator, float fDenominator );
|
||||||
|
CString PrettyPercent( int fNumerator, int fDenominator ) { return PrettyPercent( float(fNumerator), float(fDenominator) ); }
|
||||||
CString Commify( int iNum );
|
CString Commify( int iNum );
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user