var
rq,rq1:integer;
begin
rq:=10;
rq1:=rq/2;'此句出错了?
rq,rq1:integer;
begin
rq:=10;
rq1:=rq/2;'此句出错了?
解决方案 »
- 请问TMS的DBAdvGrid怎样设置编号呢?
- 用java开发的webservices,返回值是jdom的Element类型,用delphi如何调用? java的参数类型已经确定就是Jdom,不是String类型,在delphi中
- 新手提问,请多支持!!!
- 我要跳楼了,救救我 救救我救救我救救我救救我救救我救救我救救我
- 如何遍历注册表,并找到某些指定的字符串
- 关于imagelist的图标大小如何调整????????????????????????????
- 一个控件问题
- 如何让多个窗体同时运行在一起?
- 给点建议吧……
- 我想把DELPHI与SQL SERVER 动态管理起来
- 用Delphi程序怎么控制电脑重新启动、注销、关机呢??
- sql
rq div 2就可以拉
div 返回整数/ 返回double
Integer -147483648..2147483647 signed 32-bit
Cardinal 0..4294967295 unsigned 32-bitFundamental integer types include Shortint, Smallint, Longint, Int64, Byte, Word, and Longword.Type Range Format
Shortint -28..127 signed 8-bit
Smallint -2768..32767 signed 16-bit
Longint -147483648..2147483647 signed 32-bit
Int64 -2^63..2^63? signed 64-bit
Byte 0..255 unsigned 8-bit
Word 0..65535 unsigned 16-bit
Longword 0..4294967295 unsigned 32-bit
In general, arithmetic operations on integers return a value of type Integer梬hich, in its current implementation, is equivalent to the 32-bit Longint. Operations return a value of type Int64 only when performed on an Int64 operand. Hence the following code produces incorrect results.
而div返回的是Integer类型。