Chinaunix
标题:
为什么计算出来的数值不精确呢?
[打印本页]
作者:
mysqlshell
时间:
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求值,为什么不准确呢?计算的出来的数,有的准确,有的确是去掉了小数部分。
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2