社区
Delphi
帖子详情
Number is out of range问题
Gmjinrong
2010-08-10 09:28:45
以下数据有可能是整数、小数相加。
cdsData.FieldByName('Total_Count').AsFloat :=cdsData.FieldByName('Total_Count').AsFloat+1;
经常出现Number is out of range问题
...全文
1064
10
打赏
收藏
Number is out of range问题
以下数据有可能是整数、小数相加。 cdsData.FieldByName('Total_Count').AsFloat :=cdsData.FieldByName('Total_Count').AsFloat+1; 经常出现Number is out of range问题
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
10 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
Gmjinrong
2010-08-10
打赏
举报
回复
这个是一个Sum的结果,是1或者0.5或0相加的结果全部是一位小数
goodhj
2010-08-10
打赏
举报
回复
数据库里Total_Count这个字段你设成什么类型了?设置精度了?
Gmjinrong
2010-08-10
打赏
举报
回复
最小0.0,最大都是169.0
ecjtu5208
2010-08-10
打赏
举报
回复
[Quote=引用 1 楼 lovelymelon 的回复:]
数值超出float的范围了
[/Quote]
delphi没有float型,对应的是single.
ecjtu5208
2010-08-10
打赏
举报
回复
那看你的‘Total_Count’本身从数据库中抓出来的值咯,超出数据类型范围咯
lovelymelon
2010-08-10
打赏
举报
回复
数值超出float的范围了
kye_jufei
2010-08-10
打赏
举报
回复
使用Double Precision應該就不會有問題...
kye_jufei
2010-08-10
打赏
举报
回复
您的Asfloat值超出了范圍...
日立奔腾浪潮微软松下联想
2010-08-10
打赏
举报
回复
用SQL的update试试。
goodhj
2010-08-10
打赏
举报
回复
重复问5楼的问题
【0030】 PostgreSQL报错:row
number
0 is out of
range
0..-1
一、PostgreSQL的C ++客户端中,若函数:GetResRow 获取的结果集为0,则其默认行为是:进程会直接宕掉,同时 stderr ,向终端打错误码,提示: row
number
0 is out of
range
0…-1。如下图所示: 。google一番,似乎该Bug在PG的9.1~9.3中都存在这样的
问题
。 二、其API代码如下: int iType = HPR_Atoi32...
The column index is out of
range
10,
number
of colums: 9
The column index is out of
range
10,
number
of colums: 9
报SQL异常Parameter index out of
range
(1 >
number
of parameters, which is 0).
数据库错误:Parameter index out of
range
(1 >
number
of parameters, which is 0). 错误发生原因其实很简单,就是当设置参数时,没有相应的问号与之匹配(或者根本就没有?号). 如果是:Parameter index out of
range
(26 >
number
of paramet...
Java中long类型直接赋值出现The literal xxxxxxxxxx of type int is out of
range
问题
的原因和解决方法
在Java中执行如下的代码: long
number
= 26012402244; 编译的时候会出现一个错误,提示“过大的整数: 32322355744”,如果在Eclipse中书写上面的代码,提示的是“The literal 26012402244 of type int is out of
range
”。可以看出,在Java代码中直接书写的数字是int类型的,就是说数字
one of arguments' values is out of
range
(index is out of
range
) in function cvPtr2D,c:\\
one of arguments' values is out of
range
(index is out of
range
) in function cvPtr2D,c:\\
Delphi
5,379
社区成员
262,722
社区内容
发帖
与我相关
我的任务
Delphi
Delphi 开发及应用
复制链接
扫一扫
分享
社区描述
Delphi 开发及应用
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章