if radiobutton4.Checked then
      if num1<>0 then
        edit3.text:=inttostr(num/num1);//出错
      else
        showmessage ('除数不能为0');提示[Error] Unit1.pas(61): There is no overloaded version of 'IntToStr' that can be called with these arguments
到底出了什么错啦

解决方案 »

  1.   

    num/num1   的结果是float 
    用楼上的 floatTostr()
      

  2.   

    都是不行啊,我按上面改啦,结果就提示说[Error] Unit1.pas(63): ';' not allowed before 'ELSE'
      

  3.   

    Delete the ';' 
    or
    if radiobutton4.Checked then
          if num1<>0 then begin
            edit3.text:=inttostr(num/num1);
          end
          else
            showmessage ('除数不能为0');
      

  4.   

    Delete the ';' 
    or
    if radiobutton4.Checked then
          if num1<>0 then begin
            edit3.text:=floattostr(num/num1);
          end
          else
            showmessage ('除数不能为0');
      

  5.   

    floattostr(num/num1)
    或者
    inttostr(num div num1)
      

  6.   

    是啊,floattostr就行,再去掉;