这个问题难度非常大,不是高手的不要近来 /操作的返回值为realvar temp1,temp2:ulong; Temp:Real;begin temp:=temp1/temp2; // <--------此处编译通不过,怎么办?end; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 temp:=Round(temp1/temp2); 问题是temp我必须设成整数,结果得到temp1/temp2的整数部分,能不能用类似C语言的强制类型转化的东西temp:=ulong(temp1/temp2) <--我试了,不行,如何达到这种效果? 不好意思,这个ulong是什么?如果是求商,用div()函数能不能满足需要 既然你只要整数部份,那就这样好了。temp := temp1 div temp2; var temp,temp1,temp2:ulong;begin ... temp:=temp1 div temp2; ...end; 数据读取时遇到一个很怪的问题 ListView中的item无法选中,寻找解决方法 闂竴涓叧浜巇elphi鐨勫皬闂锛岄珮鎵嬪府涓繖 如何查询同一个月份的记录(年份可以不同)? 敬请给予帮助! 过年了,分数太多,散点分之8 为什么只让EDIT框里只输入数据后不能使用退格键了? 请问程序打包的时候,怎么将odbc配置进去,用ini行不 同志们,帮帮忙啊!sql server+delphi,记录超过50000条,怎么提高读取速度? stringgrid 的drawcell事件 请教:怎样在DELPHI中插入FLASH动画图片?? 区位码问题
temp:=Round(temp1/temp2);
如果是求商,用div()函数能不能满足需要
temp := temp1 div temp2;
temp,temp1,temp2:ulong;
begin
...
temp:=temp1 div temp2;
...
end;