function TmainForm.tysswr(n,i:integer;s:string):string; //n间隔四舍六入
var temp:real;
t:string;
begin
temp:=strtofloat(s)/n;
t:=mainForm.sswr(floattostr(temp),i);
temp:=strtofloat(t)*n;
t:=mainForm.sswr(floattostr(temp),i);
result:=t;
end;[@more@]
var temp:real;
t:string;
begin
temp:=strtofloat(s)/n;
t:=mainForm.sswr(floattostr(temp),i);
temp:=strtofloat(t)*n;
t:=mainForm.sswr(floattostr(temp),i);
result:=t;
end;[@more@]
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/11218608/viewspace-1011006/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/11218608/viewspace-1011006/