当我执行 inttostr(int(一个double型的变量))时,出现如下提示,是什么意思啊?
There is no overloaded version of 'IntToStr' that can be called with these arguments

解决方案 »

  1.   

    请注意Delphi里的Int函数,返回值是一个Extended类型function Int(X: Extended): Extended;
      

  2.   

    inttostr(一个整型变量); 也不行啊
    只有这样才行:inttostr(100);
      

  3.   

    inttostr(round(一个double型的变量))
      

  4.   

    同意楼上的;
    是说:没有inttostr()的重载,因此不能使用该函数。
    实际上是你的参数不对,
    可以这样: inttostr(trunc(double型))
      

  5.   

    那是你程序其他问题出错了巴,要不 
    var i :integer;
    begin
      showmessage(inttostr(i));
    end 
    肯定是可以的啊
      

  6.   

    trunc取整数;
    round四舍五入