免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1710 | 回复: 0
打印 上一主题 下一主题

为什么计算出来的数值不精确呢? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-03-09 15:20 |只看该作者 |倒序浏览
create table tji_aiaa (

l_dbt_bal float(30,2) not null default 0.0 ,
l_crt_bal float(30,2) not null default 0.0 ,
db_amt    float(30,2) not null default 0.0 ,
crd_amt   float(30,2) not null default 0.0 ,
dbt_bal   float(30,2) not null default 0.0 ,
crd_bal   float(30,2) not null default 0.0 ,
br_no     varchar(40) not null  ,
date      date not null,
ccy       varchar(40) not null ,

);

---------------

用sum求值,为什么不准确呢?计算的出来的数,有的准确,有的确是去掉了小数部分。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP