以下为具体的代码(基础氚云的开发用的是C#)
int a = 1;
int b = 6;
float ftemp = (a * 1.0f / b)*100; // 计算百分比
String str=String.Format("{0:F}", ftemp); // 默认保留小数点后两位,会四舍五入
this.Request.BizObject["F0000001"] = str;
string va = this.Request.BizObject["F0000001"] + string.Empty;
附上以下测试结果截图: