在用delphi编程过程中整型,字符串型,布尔型之间怎么转换

procedure TfrmPageControl.edtmoneyClick(Sender: TObject);
var n:string;
begin
n:=edtin.text
if strtoBloon(edtin.text<>'')=true then
if rbChina.Checked then
edtmoney.text:='(edtin.text<>'')*0.005'
else
if rbgsh.Checked then
edtmoney.text:='(edtin.text<>'')*0.01'
else
if rbjsh.Checked then
edtmoney.text:='(edtin.text<>'')*0.01'
else
edtmoney.Text:='0';

end;
帮我改改

字符串要用strtofloat()转换成浮点数才能乘积.
乘积结果是浮点数
用floattostr()转换成字符串即可.
温馨提示:答案为网友推荐,仅供参考
相似回答