日期:2014-05-19  浏览次数:20464 次

原因
numeric原因
create   table     numbers
(  
n1   int,
n2   numeric(5,0),
n3   numeric(4,2)
 
  )
go  
  insert   numbers   values(     1.5,1.5,1.5   )
select   *   from   numbers
    输出的是   1 2 1.50?

n3   numeric(4,2)
的取值是     1.44呀,为什么是1.50     ???     不明白
   


------解决方案--------------------
没有问题
------解决方案--------------------
n3 numeric(4,2)
的取值是 1.44呀,查询输出结果还是1.44
------解决方案--------------------
哪里有1.44?
没问题的
------解决方案--------------------
numeric(4,2)应该是这种格式0.00而插入1.5在其范围内,为什么是1.44呢