地铁2033波旁在哪:delphi中编辑框怎么显示实型数据?

来源:百度文库 编辑:高考问答 时间:2024/05/14 13:26:17
为什么
var
X,Y:Integer;
begin
X:=StrToInt(Edit1.Text);
//Y:=sin(X);
Edit2.Text :=IntToStr(X);

end;
这样可以显示,而吧赋值中Integer换成Single就不行了呢 ?
[Error] Unit1.pas(50): There is no overloaded version of 'IntToStr' that can be called with these arguments

楼上的那个明显是个机器人,对所有的问题都是相同的回答。管理员都干吗去了??

FloatToStr()