隐式转换
遵循从小向大的转换原则,如整数类型数据中转换的顺序为Shortint → Smallint → Longint → lnt64
var
i:Shortint;
j:Smallint;
k:Longint;
l:Int64;
begin
i:=120;
j:=i;
k:=j;
l:=k;
end;
强制类型转换
![image-20230216221533879](/i/l/?n=23&i=blog/3010252/202302/3010252-20230216223129887-1626517881.png)
标签:类型转换,Smallint,转换,Shortint,Delphi,Longint From: https://www.cnblogs.com/DQ-MINE/p/17128567.html《Delphi应用开发完全手册》p41