used String::floatOf
This commit is contained in:
parent
0c5bf0956d
commit
677b90dbb1
@ -591,8 +591,10 @@ Chart *ToChart32(const PositionStat *ps)
|
|||||||
|
|
||||||
if(step_count[i]>0)
|
if(step_count[i]>0)
|
||||||
{
|
{
|
||||||
str+=" ";
|
num_str=AnsiString::floatOf(float(step_count[i])*100.0f/float(ps->count),4);
|
||||||
str+=AnsiString::numberOf(float(step_count[i])*100.0f/float(ps->count));
|
|
||||||
|
str.Strcat(space,3+(8-num_str.Length()));
|
||||||
|
str+=num_str;
|
||||||
str+="%";
|
str+="%";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user